<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Setting MetaData:Host over transforms.conf doesn't work in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49828#M11959</link>
    <description>&lt;P&gt;I have icinga debug logs from a server called monitoring01 looking like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[1284468200.195107] Checking service 'sys - Zeus ZXTM LB zeus.flipper processes' on host 'balance01'...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;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'.&lt;/P&gt;

&lt;P&gt;On monitoring01 (splunk forwarder) I have the following files in place. They should convert the time and the hostname:&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/apps/scripts/props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/icinga_converter.sh]
TIME_PREFIX = \[\d{10}
TIME_FORMAT = %+
MAX_TIMESTAMP_LOOKAHEAD = 11
SHOULD_LINEMERGE = false
TRANSFORMS-hostname = icinga_hostconverter
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/opt/splunk/etc/apps/scripts/transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[icinga_hostconverter]
REGEX = ([^']*)'\.\.\.$
FORMAT = host::$1
DEST_KEY = MetaData:Host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The timestamp is taken out of the logline instead of arrival time at splunk correctly, but MetaData:Host remains to be set as monitoring01. &lt;/P&gt;

&lt;P&gt;I can't find any hint, why the transformation won't work. Does anybody have an idea?&lt;/P&gt;</description>
    <pubDate>Tue, 14 Sep 2010 19:57:41 GMT</pubDate>
    <dc:creator>Thomas_Gresch</dc:creator>
    <dc:date>2010-09-14T19:57:41Z</dc:date>
    <item>
      <title>Setting MetaData:Host over transforms.conf doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49828#M11959</link>
      <description>&lt;P&gt;I have icinga debug logs from a server called monitoring01 looking like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[1284468200.195107] Checking service 'sys - Zeus ZXTM LB zeus.flipper processes' on host 'balance01'...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;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'.&lt;/P&gt;

&lt;P&gt;On monitoring01 (splunk forwarder) I have the following files in place. They should convert the time and the hostname:&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/apps/scripts/props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/icinga_converter.sh]
TIME_PREFIX = \[\d{10}
TIME_FORMAT = %+
MAX_TIMESTAMP_LOOKAHEAD = 11
SHOULD_LINEMERGE = false
TRANSFORMS-hostname = icinga_hostconverter
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/opt/splunk/etc/apps/scripts/transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[icinga_hostconverter]
REGEX = ([^']*)'\.\.\.$
FORMAT = host::$1
DEST_KEY = MetaData:Host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The timestamp is taken out of the logline instead of arrival time at splunk correctly, but MetaData:Host remains to be set as monitoring01. &lt;/P&gt;

&lt;P&gt;I can't find any hint, why the transformation won't work. Does anybody have an idea?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2010 19:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49828#M11959</guid>
      <dc:creator>Thomas_Gresch</dc:creator>
      <dc:date>2010-09-14T19:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting MetaData:Host over transforms.conf doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49829#M11960</link>
      <description>&lt;P&gt;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).&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2010 01:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49829#M11960</guid>
      <dc:creator>Jeremiah</dc:creator>
      <dc:date>2010-09-15T01:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setting MetaData:Host over transforms.conf doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49830#M11961</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2010 01:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49830#M11961</guid>
      <dc:creator>hulahoop</dc:creator>
      <dc:date>2010-09-15T01:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Setting MetaData:Host over transforms.conf doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49831#M11962</link>
      <description>&lt;P&gt;I've tried moving them into a local/ and a default/ directory within the app - no effect.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Sep 2010 20:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49831#M11962</guid>
      <dc:creator>Thomas_Gresch</dc:creator>
      <dc:date>2010-09-19T20:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Setting MetaData:Host over transforms.conf doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49832#M11963</link>
      <description>&lt;P&gt;I've switched the forwarder from a LightWeight forwarder to a regular forwarder:&lt;/P&gt;

&lt;P&gt;'splunk display app' shows&lt;/P&gt;

&lt;P&gt;SplunkForwarder               UNCONFIGURED        ENABLED             INVISIBLE&lt;BR /&gt;&lt;BR /&gt;
SplunkLightForwarder          UNCONFIGURED        DISABLED            INVISIBLE           &lt;/P&gt;

&lt;P&gt;but still no effect.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Sep 2010 20:21:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49832#M11963</guid>
      <dc:creator>Thomas_Gresch</dc:creator>
      <dc:date>2010-09-19T20:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Setting MetaData:Host over transforms.conf doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49833#M11964</link>
      <description>&lt;P&gt;You have your source in props.conf as type script:: - Are you doing an internal pull using this script?&lt;/P&gt;

&lt;P&gt;Try doing a plain forwarding of the raw file to the indexer, and specify source:: at the indexing props.conf instead.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2011 17:50:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Setting-MetaData-Host-over-transforms-conf-doesn-t-work/m-p/49833#M11964</guid>
      <dc:creator>tskimball</dc:creator>
      <dc:date>2011-03-02T17:50:10Z</dc:date>
    </item>
  </channel>
</rss>

