<?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: Match 2 log lines using common value and compare in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Match-2-log-lines-using-common-value-and-compare/m-p/464455#M6872</link>
    <description>&lt;P&gt;Thank you so much for your support. It is working perfectly.&lt;/P&gt;</description>
    <pubDate>Sun, 24 May 2020 16:20:12 GMT</pubDate>
    <dc:creator>mohanrajm</dc:creator>
    <dc:date>2020-05-24T16:20:12Z</dc:date>
    <item>
      <title>Match 2 log lines using common value and compare</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Match-2-log-lines-using-common-value-and-compare/m-p/464451#M6868</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;
&lt;P&gt;I'm new to Splunk and trying to achieve the below requirements. Please help me.&lt;/P&gt;
&lt;P&gt;If the system name is not started with "AUH" and if it's part of "corporate_VPN" then give the result in a table with the user name, computer name, and group name. user field has a common value between these 2 log lines but system name is from another log line.&lt;/P&gt;
&lt;P&gt;2020-05-21 13:47:18 System4.Info 10.10.10.1 date=2020-05-21 time=13:47:45 devname="FW01-T1" devid="FG201" logid="39949" type="event" subtype="vpn" level="information" logdesc="SSL VPN statistics" action="tunnel-stats" tunneltype="ssl-tunnel" &lt;STRONG&gt;user="testuser"&lt;/STRONG&gt; &lt;STRONG&gt;group="corporate_VPN"&lt;/STRONG&gt; msg="SSL tunnel statistics"&lt;/P&gt;
&lt;P&gt;2020-05-21 13:47:51 System4.Info 10.10.10.1 date=2020-05-21 time=13:47:51 devname="FW01-T1" devid="FG201" logid="45057" type="event" subtype="endpoint" level="information" logdesc="FortiClient connection added" action="add" status="success" connection_type="sslvpn" count=1 &lt;STRONG&gt;user="testuser"&lt;/STRONG&gt; &lt;STRONG&gt;systemname="AUHWIN01"&lt;/STRONG&gt; msg="Add a FortiClient Connection."&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Mohan&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 15:55:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Match-2-log-lines-using-common-value-and-compare/m-p/464451#M6868</guid>
      <dc:creator>mohanrajm</dc:creator>
      <dc:date>2020-06-07T15:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 log lines using common value and compare</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Match-2-log-lines-using-common-value-and-compare/m-p/464452#M6869</link>
      <description>&lt;P&gt;This may help, but the results may be not great if there are multiple sets of events for the same user.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo
| stats values(*) as * by user
| where match(group, "corporate_VPN") AND NOT match(systemname, "(?i)AUH.*")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 May 2020 14:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Match-2-log-lines-using-common-value-and-compare/m-p/464452#M6869</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-24T14:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 log lines using common value and compare</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Match-2-log-lines-using-common-value-and-compare/m-p/464453#M6870</link>
      <description>&lt;P&gt;Thanks for your quick reply. I'm getting the unexpected results but due to case-sensitivity, I guess. how to match the system name even if it's case sensitive or not?&lt;/P&gt;

&lt;P&gt;For Example:&lt;BR /&gt;
AUH&lt;BR /&gt;
auh&lt;BR /&gt;
Auh&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 15:41:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Match-2-log-lines-using-common-value-and-compare/m-p/464453#M6870</guid>
      <dc:creator>mohanrajm</dc:creator>
      <dc:date>2020-05-24T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 log lines using common value and compare</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Match-2-log-lines-using-common-value-and-compare/m-p/464454#M6871</link>
      <description>&lt;P&gt;Use the case-insensitive flag &lt;CODE&gt;(?i)&lt;/CODE&gt; in the regular expression.  I've updated my answer to include it.&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 15:57:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Match-2-log-lines-using-common-value-and-compare/m-p/464454#M6871</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-24T15:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Match 2 log lines using common value and compare</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Match-2-log-lines-using-common-value-and-compare/m-p/464455#M6872</link>
      <description>&lt;P&gt;Thank you so much for your support. It is working perfectly.&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 16:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Match-2-log-lines-using-common-value-and-compare/m-p/464455#M6872</guid>
      <dc:creator>mohanrajm</dc:creator>
      <dc:date>2020-05-24T16:20:12Z</dc:date>
    </item>
  </channel>
</rss>

