<?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 Transform Action for two different Authentication events in Security</title>
    <link>https://community.splunk.com/t5/Security/Transform-Action-for-two-different-Authentication-events/m-p/203988#M5877</link>
    <description>&lt;P&gt;I have 2 events from 2 different systems which are displaying slightly different authentication sucessful messages (due to running differenent version firmware) but need to catch 'success' in the action.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sample&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Oct 23 03:50:36 2015 [192.168.1.2] authmgr[596]: &amp;lt;522008&amp;gt; &amp;lt;NOTI&amp;gt; |authmgr|  User authenticated: Name=john.doe MAC=d8:45:95:37:19:3a IP=192.168.1.24 method=802.1x server=radius.lab.com role=authenticated

Oct 23 03:49:53 lab2 authmgr[1883]: &amp;lt;522008&amp;gt; &amp;lt;NOTI&amp;gt; &amp;lt;lab2 192.168.1.10&amp;gt;  User Authentication Successful: username=mary.jane MAC=c0:aa:d1:db:7d:f8 IP=192.168.2.34 role=authenticated VLAN=601 AP=32.3.4 SSID=ssidlab AAA profile=Auth_AaaProfile auth method=802.1x auth server=radius.lab.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Both of these are sucess auths.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[aruba_user_action]
REGEX = User\s+(authenticated)|Authentication\s+(Successful|Failed)
FORMAT = aruba_user_action::$1

[aruba_user_action_lookup]
filename = aruba_user_action.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried variations of the REGEX but I can only capture either one or the other log sample but not both.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Oct 2015 03:57:32 GMT</pubDate>
    <dc:creator>pjohnson1</dc:creator>
    <dc:date>2015-10-23T03:57:32Z</dc:date>
    <item>
      <title>Transform Action for two different Authentication events</title>
      <link>https://community.splunk.com/t5/Security/Transform-Action-for-two-different-Authentication-events/m-p/203988#M5877</link>
      <description>&lt;P&gt;I have 2 events from 2 different systems which are displaying slightly different authentication sucessful messages (due to running differenent version firmware) but need to catch 'success' in the action.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sample&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Oct 23 03:50:36 2015 [192.168.1.2] authmgr[596]: &amp;lt;522008&amp;gt; &amp;lt;NOTI&amp;gt; |authmgr|  User authenticated: Name=john.doe MAC=d8:45:95:37:19:3a IP=192.168.1.24 method=802.1x server=radius.lab.com role=authenticated

Oct 23 03:49:53 lab2 authmgr[1883]: &amp;lt;522008&amp;gt; &amp;lt;NOTI&amp;gt; &amp;lt;lab2 192.168.1.10&amp;gt;  User Authentication Successful: username=mary.jane MAC=c0:aa:d1:db:7d:f8 IP=192.168.2.34 role=authenticated VLAN=601 AP=32.3.4 SSID=ssidlab AAA profile=Auth_AaaProfile auth method=802.1x auth server=radius.lab.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Both of these are sucess auths.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[aruba_user_action]
REGEX = User\s+(authenticated)|Authentication\s+(Successful|Failed)
FORMAT = aruba_user_action::$1

[aruba_user_action_lookup]
filename = aruba_user_action.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried variations of the REGEX but I can only capture either one or the other log sample but not both.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 03:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Transform-Action-for-two-different-Authentication-events/m-p/203988#M5877</guid>
      <dc:creator>pjohnson1</dc:creator>
      <dc:date>2015-10-23T03:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Transform Action for two different Authentication events</title>
      <link>https://community.splunk.com/t5/Security/Transform-Action-for-two-different-Authentication-events/m-p/203989#M5878</link>
      <description>&lt;P&gt;Hi pjohnson,&lt;/P&gt;

&lt;P&gt;Try the following,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = User\s+(?:Authentication\s+)?(authenticated|Successful|Failed): 
Or this for a more generic match 
REGEX = User\s+(?:Authentication\s)?(\w+):
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note how you can use ?: to define a non-captured group in regex.  Here's a link to regex101 if you would like to see what the regex is doing: &lt;A href="https://regex101.com/r/bX8vH0/1"&gt;https://regex101.com/r/bX8vH0/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 06:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Transform-Action-for-two-different-Authentication-events/m-p/203989#M5878</guid>
      <dc:creator>gcato</dc:creator>
      <dc:date>2015-10-23T06:38:32Z</dc:date>
    </item>
  </channel>
</rss>

