<?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 Regex to match lines with multiple src_ip in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-lines-with-multiple-src-ip/m-p/565832#M197162</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;To pull in specific events in splunk i am trying to write a regex to identify lines that matches both the conditions&lt;/P&gt;&lt;P&gt;1: app_protocol=http or https&lt;/P&gt;&lt;P&gt;2. src_ip = starts with 15. or 16.&lt;/P&gt;&lt;P&gt;This is what i have , but doesnt seem to be working , am i doing somting wrong ?&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;.*app_protocol=HTTP|S\s.*(src_ip\=15\.\d+\.\d+\.\d+|16.\.\d+\.\d+\.\d+)*&lt;/DIV&gt;</description>
    <pubDate>Fri, 03 Sep 2021 15:46:20 GMT</pubDate>
    <dc:creator>saurabhkharkar</dc:creator>
    <dc:date>2021-09-03T15:46:20Z</dc:date>
    <item>
      <title>Regex to match lines with multiple src_ip</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-lines-with-multiple-src-ip/m-p/565832#M197162</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;To pull in specific events in splunk i am trying to write a regex to identify lines that matches both the conditions&lt;/P&gt;&lt;P&gt;1: app_protocol=http or https&lt;/P&gt;&lt;P&gt;2. src_ip = starts with 15. or 16.&lt;/P&gt;&lt;P&gt;This is what i have , but doesnt seem to be working , am i doing somting wrong ?&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;.*app_protocol=HTTP|S\s.*(src_ip\=15\.\d+\.\d+\.\d+|16.\.\d+\.\d+\.\d+)*&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Sep 2021 15:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-lines-with-multiple-src-ip/m-p/565832#M197162</guid>
      <dc:creator>saurabhkharkar</dc:creator>
      <dc:date>2021-09-03T15:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to match lines with multiple src_ip</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-lines-with-multiple-src-ip/m-p/565835#M197164</link>
      <description>&lt;P&gt;May want to paste in a raw log for testing, but you can give this a go:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(?i)app_protocol=https?.*?src_ip=(15|16)\.\d{1,3}\.\d{1,3}\.\d{1,3}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 15:58:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-to-match-lines-with-multiple-src-ip/m-p/565835#M197164</guid>
      <dc:creator>hoaxm3</dc:creator>
      <dc:date>2021-09-03T15:58:39Z</dc:date>
    </item>
  </channel>
</rss>

