|
I have a deployment server app with a single inputs.conf file.
A windows .NET application writes to this port with XML data. Splunk is indexing the data correctly, although the host is showing up as 127.0.0.1. I have this app deployed on about 50 hosts via the deployment server. Is there a way for the Splunk to show the hostname vs. 127.0.0.1 on the indexer? I am looking for a way to dynamically assign the name. If I have to hardcode the name, then this defeats the benefits of the deployment server. |
|
Great question. I doubt it's possible. The deployment process seem to be pretty limited, IMHO. WARNING: UGLY UGLY HACK... I guess you could do a hack with an input script... Make sure your existing
After the You would probably want to schedule this script to run like once every 31536000 seconds (every year); so that it will only effectively run once a splunkd restart. When you redeploy your app, obviously your Wow! That's ugly. not as bad as it could be, definitely doable, but certainly not pretty. Do you have any python experience? I could probably whip up a prototype if you want. I know there have been times where I've wanted a feature like this before. UPDATE... I went ahead and wrote a quick python script that should get the job done (I haven't actually tested it, so there could be issues.)
Then, in your
Thank you for the answer and the python script.
(24 May '10, 20:58)
Jaci ♦
|