<?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: How do I parse the three separate values for the Security_ID field in WinEventLogs for accurate alerting? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-do-I-parse-the-three-separate-values-for-the-Security-ID/m-p/249656#M4672</link>
    <description>&lt;P&gt;Thank you!  The piece that I was missing was "mvindex".  Below is my corrected search string, just in case it will help anyone. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="WinEventLog:Security"  | eval AdminAccount=mvindex(Security_ID, 0) | eval ModifiedAccount=mvindex(Security_ID, 1)| table ModifiedAccount Group_Name message AdminAccount&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2015 19:03:29 GMT</pubDate>
    <dc:creator>saulverde</dc:creator>
    <dc:date>2015-11-24T19:03:29Z</dc:date>
    <item>
      <title>How do I parse the three separate values for the Security_ID field in WinEventLogs for accurate alerting?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-parse-the-three-separate-values-for-the-Security-ID/m-p/249654#M4670</link>
      <description>&lt;P&gt;We have winEventLogs feeding into splunk.&lt;BR /&gt;&lt;BR /&gt;
I have the following alert setup. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Security" interesting_event=yes group_type=protected | table Account_Name Group_Name message Security_ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem that I am running into is that a single log contains three different values for the Security_ID field three separate times in the log.  The first entry is the account making the change, the second is the account that was changed and the third is the group being modified.  &lt;/P&gt;

&lt;P&gt;I would like each of these to show up with appropriate labels.  What I'm not sure about is how to select the X time the Security_ID field that shows up in a log in order to have it put in the table under a more descriptive label. &lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:30:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-parse-the-three-separate-values-for-the-Security-ID/m-p/249654#M4670</guid>
      <dc:creator>saulverde</dc:creator>
      <dc:date>2015-11-24T17:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I parse the three separate values for the Security_ID field in WinEventLogs for accurate alerting?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-parse-the-three-separate-values-for-the-Security-ID/m-p/249655#M4671</link>
      <description>&lt;P&gt;Hopefully, this will give you an idea&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | head 1 | eval x="s=1, s=2, s=3" | rex max_match=0 field=x "s=(?&amp;lt;sids&amp;gt;\d)" | eval sid=mvindex(sids, 1) | table sid
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:58:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-parse-the-three-separate-values-for-the-Security-ID/m-p/249655#M4671</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-11-24T17:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I parse the three separate values for the Security_ID field in WinEventLogs for accurate alerting?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-parse-the-three-separate-values-for-the-Security-ID/m-p/249656#M4672</link>
      <description>&lt;P&gt;Thank you!  The piece that I was missing was "mvindex".  Below is my corrected search string, just in case it will help anyone. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="WinEventLog:Security"  | eval AdminAccount=mvindex(Security_ID, 0) | eval ModifiedAccount=mvindex(Security_ID, 1)| table ModifiedAccount Group_Name message AdminAccount&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 19:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-parse-the-three-separate-values-for-the-Security-ID/m-p/249656#M4672</guid>
      <dc:creator>saulverde</dc:creator>
      <dc:date>2015-11-24T19:03:29Z</dc:date>
    </item>
  </channel>
</rss>

