|
I have icinga debug logs from a server called monitoring01 looking like:
monitoring01 is a splunk forwarder. Now I want to rename the host bit on splunk from monitoring01 to whatever host is mentioned in the logfile, in the above example that would be 'balance01'. On monitoring01 (splunk forwarder) I have the following files in place. They should convert the time and the hostname: /opt/splunk/etc/apps/scripts/props.conf:
/opt/splunk/etc/apps/scripts/transforms.conf:
The timestamp is taken out of the logline instead of arrival time at splunk correctly, but MetaData:Host remains to be set as monitoring01. I can't find any hint, why the transformation won't work. Does anybody have an idea? |
|
Thomas, are you using a regular forwarder or a lightweight forwarder? If you are using a LWF, then your host transform will not be honored. If this is the case, then you should put your host extraction configuration on the indexer. I've switched the forwarder from a LightWeight forwarder to a regular forwarder: 'splunk display app' shows SplunkForwarder UNCONFIGURED ENABLED INVISIBLE but still no effect.
(19 Sep '10, 13:21)
Thomas Gresch
|

Are the paths correct? transforms.conf and props.conf should go into either a default or local directory in your application (../etc/apps/scripts/default/transforms.conf).
I've tried moving them into a local/ and a default/ directory within the app - no effect.