Getting Data In

What is the best way to automatically map a field extracted via KV_MODE=auto to the host field in the event?

a212830
Champion

I have a feed that has nice key-value pair fields, which are automatically getting populated, via KV_MODE=auto in my props.conf. My question is what is the best way to automatically map one of these fields to the host field in the event.

0 Karma

neelamssantosh
Contributor
0 Karma

sbrant_splunk
Splunk Employee
Splunk Employee

Hi-

Take a look at this doc, that should answer your question: http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/Overridedefaulthostassignments

Although you will have to specify a regex and not depend on the KV_MODE extraction of the host name.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...