<?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 Re: Help with setting index and sourcetype via transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-setting-index-and-sourcetype-via-transforms-conf/m-p/319039#M59613</link>
    <description>&lt;P&gt;Cross reference to a related question (I think): &lt;A href="https://answers.splunk.com/answers/637913/help-with-syslog-tranformsprops.html"&gt;https://answers.splunk.com/answers/637913/help-with-syslog-tranformsprops.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2018 12:15:18 GMT</pubDate>
    <dc:creator>sloshburch</dc:creator>
    <dc:date>2018-04-27T12:15:18Z</dc:date>
    <item>
      <title>Help with setting index and sourcetype via transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-setting-index-and-sourcetype-via-transforms-conf/m-p/319037#M59611</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to override the "unknown" index that some of my syslog messages are coming in as, using props and transforms.  The index part is working, but the sourcetype is not setting.  Not sure what I'm doing wrong... if someone can take a look, I'd appreciate it.&lt;/P&gt;

&lt;P&gt;props.conf:&lt;BR /&gt;
    [unknown]&lt;BR /&gt;
    KV_MODE=auto&lt;BR /&gt;
    ANNOTATE_PUNCT=false&lt;BR /&gt;
    MAX_TIMESTAMP_LOOKAHEAD = 50&lt;BR /&gt;
    TRANSFORMS-set = ciscoIOS_index_parser,ciscoIOS_sourcetype_parser&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ciscoIOS_index_parser]
REGEX = %[A-Z_]+-[0-9]-[A-Z_]+:
DEST_KEY = _MetaData:Index
FORMAT = cisco

[ciscoIOS_sourcetype_parser]
REGEX = %[A-Z_]+-[0-9]-[A-Z_]+:
DEST_KEY = _MetaData:Sourcetype
FORMAT = sourcetype::cisco:ios
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:55:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-setting-index-and-sourcetype-via-transforms-conf/m-p/319037#M59611</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2020-09-29T18:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with setting index and sourcetype via transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-setting-index-and-sourcetype-via-transforms-conf/m-p/319038#M59612</link>
      <description>&lt;P&gt;Should be &lt;CODE&gt;DEST_KEY = MetaData:Sourcetype&lt;/CODE&gt; without the &lt;CODE&gt;_&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;See also: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf#KEYS:"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf#KEYS:&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 14:27:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-setting-index-and-sourcetype-via-transforms-conf/m-p/319038#M59612</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-04-10T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with setting index and sourcetype via transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-setting-index-and-sourcetype-via-transforms-conf/m-p/319039#M59613</link>
      <description>&lt;P&gt;Cross reference to a related question (I think): &lt;A href="https://answers.splunk.com/answers/637913/help-with-syslog-tranformsprops.html"&gt;https://answers.splunk.com/answers/637913/help-with-syslog-tranformsprops.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 12:15:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-setting-index-and-sourcetype-via-transforms-conf/m-p/319039#M59613</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2018-04-27T12:15:18Z</dc:date>
    </item>
  </channel>
</rss>

