Getting Data In

Friendly names for source

virtualpony
Path Finder

Is it possible to give source friendly names? I collect a bunch of ESXi syslogs from a file and it shows up in splunk as D:\longpath\ipaddress\syslog.log. Because the source name is so long, it gets truncated with ... In the chart legends. I'd like to give it a more meaningful name like 'ESXi-01'.

Thanks

Tags (2)
0 Karma

ChrisG
Splunk Employee
Splunk Employee

You can use the rename attribute in the source type stanza in your props.conf file. See Rename source types in the Getting Data In Manual.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Right idea, but rename changes the field name, not the field value. you want eval and one of the eval functions to change the value, or possibly the rex command. (Though you do what the rex command does with eval using the replace() function.)

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...