Knowledge Management

Determine Source IP of log entry

jwilson_clover
Engager

I have log entries that are appearing in Splunk that are being labeled as coming from a specific host, but that host isn't even turned on.

How can I view the origin IP of a log entry regardless of the host label?

Tags (1)
0 Karma
1 Solution

masonmorales
Influencer

This is not possible. The only metadata associated to any particular event (by default) is: host, sourcetype, source, and index. You could create a new indexed field extraction to identify the origin IP, or apply a transformation to the host field, but you have to configure it, and it will only be applied to future events.

You might also consider setting the host field to the desired value(s) in inputs.conf for each input stanza on your forwarder(s).

See:
http://docs.splunk.com/Documentation/Splunk/latest/Data/Configureindex-timefieldextraction
http://docs.splunk.com/Documentation/Splunk/6.0/Data/Overridedefaulthostassignments

View solution in original post

masonmorales
Influencer

This is not possible. The only metadata associated to any particular event (by default) is: host, sourcetype, source, and index. You could create a new indexed field extraction to identify the origin IP, or apply a transformation to the host field, but you have to configure it, and it will only be applied to future events.

You might also consider setting the host field to the desired value(s) in inputs.conf for each input stanza on your forwarder(s).

See:
http://docs.splunk.com/Documentation/Splunk/latest/Data/Configureindex-timefieldextraction
http://docs.splunk.com/Documentation/Splunk/6.0/Data/Overridedefaulthostassignments

jwilson_clover
Engager

All the hosts have that set, yet this mysterious entry keeps appearing.

0 Karma
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...