Splunk Search

rename default fields

moorvogi
Path Finder

i'm using a NIFI flow to send in 3 values (host, message, moreData). I want to use host passed in from nifi as a JSON object and that works just fine but the records w/in Splunk show to values for "host".

It shows 127.0.0.1 and the actual value i want, lets say validHostName1.

If i exclude host 127.0.0.1 it removes the "validHostName1" values also as it's duel named.

I could rename the value i want to hostname thus negating the double value single var issue but I'm curious if there's a way to invert that and rename "host" which results in 127.0.0.1 to.. something else? Thus resulting in : host=validHostname1 and oldDefaultHost=127.0.0.1

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...