Getting Data In

"Set Host" in multiple logs files

dagnu
New Member

Hi all 🙂

I'm in trouble regarding set host in multiple logs files ...

Here's folders logs:
/192.168.0.1/log1.log
/192.168.0.2/log1.log
/192.168.0.3/log1.log

For example, an log1.log:

<166>2012-03-04T11:02:14.526Z MyHost Vpxa: [34229B90 verbose 'SoapAdapter.HTTPService' opID=SWI-3f235b28-23]

I'd like to catch "MyHost" in each log1.log to set host value.

Thanks for your help

Regards

Tags (3)
0 Karma

kristian_kolb
Ultra Champion

could you please post your inputs.conf

/k

0 Karma

dagnu
New Member

Not work 😞

Host still appear with "192.168.0.1" 192.168.0.2" etc.

Thanks 🙂

0 Karma

kristian_kolb
Ultra Champion

Hi,

Have you tried to set the sourcetype to syslog, since that is what it seems to be. Splunk should then extract the hostname from each event by default, I think.

/kristian

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...