<?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: routing window system logs to a different index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/38377#M7063</link>
    <description>&lt;P&gt;hey Ayn,&lt;/P&gt;

&lt;P&gt;thanks for yoour reply. The logs are still going to the main index.&lt;/P&gt;

&lt;P&gt;Here's my latest transforms.conf config&lt;/P&gt;

&lt;P&gt;[WinEventLog]&lt;BR /&gt;
SOURCE_KEY=MetaData:Sourcetype&lt;BR /&gt;
REGEX=WinEventLog:Security&lt;BR /&gt;
DEST_KEY=_MetaData:Index&lt;BR /&gt;
FORMAT=Security&lt;/P&gt;

&lt;P&gt;And I restarted splunkd after making the changes. &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:21:39 GMT</pubDate>
    <dc:creator>usup_rajbahak</dc:creator>
    <dc:date>2020-09-28T13:21:39Z</dc:date>
    <item>
      <title>How to route window system logs to a different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/38375#M7061</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;
&lt;P&gt;I have a windows forwarder sending the servers's application, system and security logs to the indexers. I need to route only the security logs to a different index. I've tried a few different things but none seem to be working. This is my latest config&lt;/P&gt;
&lt;P&gt;props.conf&lt;BR /&gt;[WinEventLog]&lt;BR /&gt;TRANSFORMS-FIELDS = WinEventLog&lt;/P&gt;
&lt;P&gt;transforms.conf&lt;BR /&gt;[WinEventLog]&lt;BR /&gt;SOURCE_KEY=sourcetype&lt;BR /&gt;REGEX=source=WinEventLog:Security&lt;BR /&gt;DEST_KEY=_Metadata:Index&lt;BR /&gt;FORMAT=Security&lt;/P&gt;
&lt;P&gt;What am I doing wrong here? Thanks a lot&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 14:20:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/38375#M7061</guid>
      <dc:creator>usup_rajbahak</dc:creator>
      <dc:date>2022-04-08T14:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: routing window system logs to a different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/38376#M7062</link>
      <description>&lt;P&gt;I see a couple of issues with how you've set things up.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;SOURCE_KEY&lt;/CODE&gt; shouldn't be just "sourcetype", it should be "MetaData:Sourcetype".&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;DEST_KEY&lt;/CODE&gt; should start with "_MetaData", not "_Metadata" (note the capital D).&lt;/LI&gt;
&lt;LI&gt;The "MetaData:Sourcetype" value will be simply the string specifying the sourcetype, so "source=WinEventLog:Security" will not match. Perhaps you want to match on just "WinEventLog:Security"?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:21:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/38376#M7062</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2020-09-28T13:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: routing window system logs to a different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/38377#M7063</link>
      <description>&lt;P&gt;hey Ayn,&lt;/P&gt;

&lt;P&gt;thanks for yoour reply. The logs are still going to the main index.&lt;/P&gt;

&lt;P&gt;Here's my latest transforms.conf config&lt;/P&gt;

&lt;P&gt;[WinEventLog]&lt;BR /&gt;
SOURCE_KEY=MetaData:Sourcetype&lt;BR /&gt;
REGEX=WinEventLog:Security&lt;BR /&gt;
DEST_KEY=_MetaData:Index&lt;BR /&gt;
FORMAT=Security&lt;/P&gt;

&lt;P&gt;And I restarted splunkd after making the changes. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/38377#M7063</guid>
      <dc:creator>usup_rajbahak</dc:creator>
      <dc:date>2020-09-28T13:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: routing window system logs to a different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/593098#M103794</link>
      <description>&lt;P&gt;Years later &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;According to &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf#KEYS:" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf#KEYS:&lt;/A&gt; the correct solution was:&lt;/P&gt;&lt;P&gt;[WinEventLog]&lt;BR /&gt;SOURCE_KEY=MetaData:Sourcetype&lt;BR /&gt;REGEX=sourcetype::WinEventLog:Security&lt;BR /&gt;DEST_KEY=_MetaData:IndexFORMAT=Security&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probs:&lt;/P&gt;&lt;P&gt;- Syntax for indexes fields (:: instead of &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; has to be used in&amp;nbsp; REGEX&lt;/P&gt;&lt;P&gt;-There was a mix between sourcetype (in SOURCE_KEY) and source (in REGEX)&lt;/P&gt;&lt;P&gt;-case sensitivity of indexes is delicate, so I would always only use lowercase (FORMAT)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As of Splunk Add-on for Windows &amp;gt;=5.0.0&amp;nbsp; sourcetype contains only "WinEventLog" (or XmlWinEventLog) for all EventLogs, so the correct solution to specifically route WinEventLog:Security is:&lt;/P&gt;&lt;P&gt;[WinEventLogSecurityRouting]&lt;BR /&gt;SOURCE_KEY=MetaData:Source&lt;BR /&gt;REGEX=source::WinEventLog:Security&lt;BR /&gt;DEST_KEY=_MetaData:Index&lt;BR /&gt;FORMAT=security&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 10:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/593098#M103794</guid>
      <dc:creator>jonasmeier</dc:creator>
      <dc:date>2022-04-08T10:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: routing window system logs to a different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/593101#M103796</link>
      <description>&lt;P&gt;Why don't you set the proper index on input in the first place?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 11:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/593101#M103796</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-08T11:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: routing window system logs to a different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/593103#M103797</link>
      <description>&lt;P&gt;Any case where a deployed inputs.conf can not be accessed or changed. my szenario was attaching new indexers to an existing infrastructure as preparation for a migration.&amp;nbsp; But index names also changed so for a specific period we had to write events to two different indexes on different indexers. Kind of special case though.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/593103#M103797</guid>
      <dc:creator>jonasmeier</dc:creator>
      <dc:date>2022-04-08T12:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: routing window system logs to a different index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/593104#M103798</link>
      <description>&lt;P&gt;Baaah, I didn't notice it was a "golden shovel" post &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Of course, in some special cases one can use the index-time manipulation of metadata fields but in general if you can set the metadata right from the start, you should use that functionality. It's good to keep things simple and consistent. Forgotten custom solutions tend to bite you in the rear end in the least appropriate moment &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 12:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-route-window-system-logs-to-a-different-index/m-p/593104#M103798</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-08T12:22:30Z</dc:date>
    </item>
  </channel>
</rss>

