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

 

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...