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!

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

Register Join this Tech Talk to learn how unique features like Service Centric Views, Tag Spotlight, and ...