<?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: ASA Firewall events IP extract in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/ASA-Firewall-events-IP-extract/m-p/650390#M224847</link>
    <description>&lt;P&gt;Try adding the following to establish the boundary of the IP and search past the ASA message. This will get the first available IP address. If this works for you please be sure to grant some karma!&lt;/P&gt;&lt;P&gt;| rex field=_raw "ASA\-\d\-\d+\:.+?(\b(?&amp;lt;ipaddress&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 14:08:12 GMT</pubDate>
    <dc:creator>Simple_Search</dc:creator>
    <dc:date>2023-07-13T14:08:12Z</dc:date>
    <item>
      <title>ASA Firewall events IP extract</title>
      <link>https://community.splunk.com/t5/Splunk-Search/ASA-Firewall-events-IP-extract/m-p/650373#M224839</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I need to extract the first IP from ASA events, after the first IP sometimes there are 3 other IPs, sometimes 2, and sometimes 1 IP, but I need only the first one without depending on how many IPs are after the first.&lt;/P&gt;&lt;P&gt;2023-07-13T11:24:25+02:00 FirASA : %ASA-6-302013: Built inbound TCP connection 2907550162 for dmzIB:&lt;STRONG&gt;192.168.7.7&lt;/STRONG&gt;/49446 (192.168.7.7/49446) to inside:10.100.40.4/8080 (10.100.40.4/8080)&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 11:52:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/ASA-Firewall-events-IP-extract/m-p/650373#M224839</guid>
      <dc:creator>evallja</dc:creator>
      <dc:date>2023-07-13T11:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: ASA Firewall events IP extract</title>
      <link>https://community.splunk.com/t5/Splunk-Search/ASA-Firewall-events-IP-extract/m-p/650378#M224840</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;The following regex will start at the beginning of the event and pull the first IP address it sees. I have provided a screen capture of an example event, hope this helps!&lt;/P&gt;&lt;P&gt;| rex field=_raw "(?&amp;lt;ipaddress&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})"&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 12:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/ASA-Firewall-events-IP-extract/m-p/650378#M224840</guid>
      <dc:creator>Simple_Search</dc:creator>
      <dc:date>2023-07-13T12:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: ASA Firewall events IP extract</title>
      <link>https://community.splunk.com/t5/Splunk-Search/ASA-Firewall-events-IP-extract/m-p/650379#M224841</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The script above is very helpful, but I just need to add one more criterion:&lt;BR /&gt;It should recognize the first IP that comes&amp;nbsp;&lt;STRONG&gt;after the string "&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;%ASA"&lt;/STRONG&gt;&amp;nbsp;because sometimes it recognizes the IP of the firewall which is the first one in the event and is always before the string "%ASA".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 12:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/ASA-Firewall-events-IP-extract/m-p/650379#M224841</guid>
      <dc:creator>evallja</dc:creator>
      <dc:date>2023-07-13T12:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: ASA Firewall events IP extract</title>
      <link>https://community.splunk.com/t5/Splunk-Search/ASA-Firewall-events-IP-extract/m-p/650390#M224847</link>
      <description>&lt;P&gt;Try adding the following to establish the boundary of the IP and search past the ASA message. This will get the first available IP address. If this works for you please be sure to grant some karma!&lt;/P&gt;&lt;P&gt;| rex field=_raw "ASA\-\d\-\d+\:.+?(\b(?&amp;lt;ipaddress&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 14:08:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/ASA-Firewall-events-IP-extract/m-p/650390#M224847</guid>
      <dc:creator>Simple_Search</dc:creator>
      <dc:date>2023-07-13T14:08:12Z</dc:date>
    </item>
  </channel>
</rss>

