Getting Data In

Change a sourcetypes 'host' field to read from the 'shost' field instead.

robnewman666
Path Finder

I have a feed that has the host field defaulting to what is essentially the sourcetype, but in the shost field I have all the host data that I want/need in the host field.  I want to know what is easier and won't break any of the splunk system configs for the built in host name extraction. Is it better to create a FIELDALIAS to have shost AS host in the props.conf for that dataset or to do something different like a transforms.conf?

Labels (3)
Tags (2)
0 Karma

isoutamo
SplunkTrust
SplunkTrust
Probably I don’t get what you are meaning, but as host field is one of those indexed fields I prefer to put the real host there.
0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @robnewman666 i think, as you said, FIELDALIAS is better for this situation.. 

documentation reference: 

https://docs.splunk.com/Documentation/Splunk/8.1.0/Knowledge/Configurefieldaliaseswithprops.conf

 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma
Get Updates on the Splunk Community!

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...