Splunk Search

Replace host IP address with Name

cshewalkar
Engager

Hi Team, 

Need some help, while running below query I get host IP i.e. 10.65.x.x in Number display visualization but I need to replace with name "xyz"

index=network ((host=10.65.x.x) AND ((Interface Ethernet1/50 is *) OR (Interface Ethernet1/49 is *) OR (Interface Ethernet1/3 is *))) | table message_text, host


Attached is the screenshot

Can you assist me what needs to be done to solve this issue.

Capt.PNG

Labels (1)
0 Karma
1 Solution

kiran_panchavat
Influencer

@cshewalkar 

Are you looking to change the host value? You can change the value using replace command. 

https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Replace 

kiran_panchavat_0-1735814354620.pngkiran_panchavat_1-1735814374576.png

I hope this helps, if any reply helps you, you could add your upvote/karma points to that reply, thanks.

I hope this helps, if any reply helps you, you could add your upvote/karma points to that reply, thanks.

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Does Splunk already know what host name has to be replaced for each ip address? For example, are there some other events, or even the same events, which hold this relationship, or do you have a lookup holding this information?

0 Karma

kiran_panchavat
Influencer

@cshewalkar 

Are you looking to change the host value? You can change the value using replace command. 

https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Replace 

kiran_panchavat_0-1735814354620.pngkiran_panchavat_1-1735814374576.png

I hope this helps, if any reply helps you, you could add your upvote/karma points to that reply, thanks.

I hope this helps, if any reply helps you, you could add your upvote/karma points to that reply, thanks.
0 Karma

cshewalkar
Engager

Hi Kiran,

Thanks.

Replace values in an internal field - has solve the problem.

0 Karma

kiran_panchavat
Influencer

@cshewalkar 

Great man. Happy Splunking!

I hope this helps. If any reply helps you, you could add your upvote/karma points to that reply.

I hope this helps, if any reply helps you, you could add your upvote/karma points to that reply, thanks.
0 Karma
Get Updates on the Splunk Community!

New This Month - Splunk Observability updates and improvements for faster ...

What’s New? This month, we’re delivering several enhancements across Splunk Observability Cloud for faster and ...

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

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