<?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 Routing windows security logs to another index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Routing-windows-security-logs-to-another-index/m-p/702428#M116193</link>
    <description>&lt;P&gt;I am trying to route my windows security logs to another specified index but it has to meet certain criteria.&lt;BR /&gt;&lt;BR /&gt;EventCode has to be 4688 and the Token Elevation Level equals either %%1936, %%1938,&amp;nbsp;TokenElevationTypeDefault, TokenElevationTypeLimited.&lt;BR /&gt;&lt;BR /&gt;So far i have written these regular expressions&lt;BR /&gt;&lt;BR /&gt;1.&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;REGEX = ((?s).*EventCode=4688*.)((?si).*(%%1936|TokenElevationTypeDefault|TokenElevationTypeLimited)*.)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;2.&amp;nbsp;REGEX = EventCode=4688.*TokenElevationType=(%%1936|%%1938|TokenElevationTypeDefault|TokenElevationTypeLimited)&lt;BR /&gt;&lt;BR /&gt;When using 1, All eventcodes 4688 come to the specified index when i only wanted 1936 and 1938. I wanted to leave the %%1937 token in its original index.&lt;BR /&gt;&lt;BR /&gt;When using 2, no data at all comes to the index even though its seems to be a much simpler regex. What am i missing to ensure 4688 is properly filter using transforms and props?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 20:33:09 GMT</pubDate>
    <dc:creator>lclayton95</dc:creator>
    <dc:date>2024-10-21T20:33:09Z</dc:date>
    <item>
      <title>Routing windows security logs to another index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-windows-security-logs-to-another-index/m-p/702428#M116193</link>
      <description>&lt;P&gt;I am trying to route my windows security logs to another specified index but it has to meet certain criteria.&lt;BR /&gt;&lt;BR /&gt;EventCode has to be 4688 and the Token Elevation Level equals either %%1936, %%1938,&amp;nbsp;TokenElevationTypeDefault, TokenElevationTypeLimited.&lt;BR /&gt;&lt;BR /&gt;So far i have written these regular expressions&lt;BR /&gt;&lt;BR /&gt;1.&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;REGEX = ((?s).*EventCode=4688*.)((?si).*(%%1936|TokenElevationTypeDefault|TokenElevationTypeLimited)*.)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;2.&amp;nbsp;REGEX = EventCode=4688.*TokenElevationType=(%%1936|%%1938|TokenElevationTypeDefault|TokenElevationTypeLimited)&lt;BR /&gt;&lt;BR /&gt;When using 1, All eventcodes 4688 come to the specified index when i only wanted 1936 and 1938. I wanted to leave the %%1937 token in its original index.&lt;BR /&gt;&lt;BR /&gt;When using 2, no data at all comes to the index even though its seems to be a much simpler regex. What am i missing to ensure 4688 is properly filter using transforms and props?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 20:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-windows-security-logs-to-another-index/m-p/702428#M116193</guid>
      <dc:creator>lclayton95</dc:creator>
      <dc:date>2024-10-21T20:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Routing windows security logs to another index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-windows-security-logs-to-another-index/m-p/702430#M116194</link>
      <description>&lt;P&gt;In Regex 1, you seem to have .* backwards (*.) in two instances, where the one near the end is particularly problematic, so if you have:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(%%1936|TokenElevationTypeDefault|TokenElevationTypeLimited)*.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Then it will match strings like %%1936, 0 or more times, so it will match events which don't include %%1936 or the other strings.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try removing the *. near the end. Also I recommend testing the regex on a site like regex101.com to make sure your regex is working before you put it in your splunk config.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 20:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-windows-security-logs-to-another-index/m-p/702430#M116194</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-10-21T20:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Routing windows security logs to another index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-windows-security-logs-to-another-index/m-p/702432#M116195</link>
      <description>&lt;P&gt;Yeah i been testing on regex 101 seem to be some delta in how splunk processes the regex however. For example this is what i have so far&lt;BR /&gt;&lt;BR /&gt;&lt;A title="regex testing 4688" href="https://regex101.com/r/95JbuG/1" target="_self"&gt;https://regex101.com/r/95JbuG/1&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;but when i add another event to this the regex stops working&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 20:56:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-windows-security-logs-to-another-index/m-p/702432#M116195</guid>
      <dc:creator>lclayton95</dc:creator>
      <dc:date>2024-10-21T20:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Routing windows security logs to another index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Routing-windows-security-logs-to-another-index/m-p/702522#M116206</link>
      <description>&lt;P&gt;Could you try this regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(?s)EventCode=4688.*Token Elevation Type: (%%1936|%%1938|TokenElevationTypeDefault|TokenElevationTypeLimited)&lt;/LI-CODE&gt;&lt;P&gt;And also post your (sanitized) props.conf and transforms.conf if it does not work?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 19:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Routing-windows-security-logs-to-another-index/m-p/702522#M116206</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-10-22T19:07:30Z</dc:date>
    </item>
  </channel>
</rss>

