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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...