<?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: search time regular expression. in Security</title>
    <link>https://community.splunk.com/t5/Security/search-time-regular-expression/m-p/424778#M10032</link>
    <description>&lt;P&gt;No, its not working. Still field are coming with dns name ip combinations.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2019 13:30:04 GMT</pubDate>
    <dc:creator>jsuryaprakash</dc:creator>
    <dc:date>2019-08-02T13:30:04Z</dc:date>
    <item>
      <title>search time regular expression.</title>
      <link>https://community.splunk.com/t5/Security/search-time-regular-expression/m-p/424776#M10030</link>
      <description>&lt;P&gt;Hi All , below is my sample data. We are receiving  data using key=value pairs like below.&lt;/P&gt;

&lt;P&gt;time=time1 | dest_ip=abmncd.com-123.45.64.78|src_ip=nahahha.com-142.36.28.69|action=success........ &lt;/P&gt;

&lt;P&gt;I just want to extract just ip address's from dest_ip and src_ip fields at search time in props.conf . when i write rex in search its working, below is my search command which is working..&lt;/P&gt;

&lt;P&gt;index =test | rex field=dest_ip  "(?(\d{1,3}.){3}\d{1,3})" |rex field src_ip  "(?(\d{1,3}.){3}\d{1,3})"&lt;/P&gt;

&lt;P&gt;But when i create inline extract in props.conf its not working.&lt;/P&gt;

&lt;P&gt;[sourcetype]&lt;BR /&gt;
EXTRACT-dest_ip = dest_ip="(?(\d{1,3}.){3}\d{1,3})"&lt;BR /&gt;
EXTRACT-src_ip = src_ip ="(?(\d{1,3}.){3}\d{1,3})"&lt;/P&gt;

&lt;P&gt;We need to use the same field names to work with CIM datamodels. we are ok with search time extraction or index time extractions also.Please help&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/search-time-regular-expression/m-p/424776#M10030</guid>
      <dc:creator>jsuryaprakash</dc:creator>
      <dc:date>2020-09-30T01:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: search time regular expression.</title>
      <link>https://community.splunk.com/t5/Security/search-time-regular-expression/m-p/424777#M10031</link>
      <description>&lt;P&gt;Hi Jsuryaprakash,&lt;/P&gt;

&lt;P&gt;Your EXTRACT stanza syntax is incorrect, change it to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-dest_ip = dest_ip\=[^\-]+\-(?P&amp;lt;dest_ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
EXTRACT-src_ip = src_ip\=[^\-]+\-(?P&amp;lt;src_ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please upvote and accept the answer if it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 08:46:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/search-time-regular-expression/m-p/424777#M10031</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2019-08-02T08:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: search time regular expression.</title>
      <link>https://community.splunk.com/t5/Security/search-time-regular-expression/m-p/424778#M10032</link>
      <description>&lt;P&gt;No, its not working. Still field are coming with dns name ip combinations.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 13:30:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/search-time-regular-expression/m-p/424778#M10032</guid>
      <dc:creator>jsuryaprakash</dc:creator>
      <dc:date>2019-08-02T13:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: search time regular expression.</title>
      <link>https://community.splunk.com/t5/Security/search-time-regular-expression/m-p/424779#M10033</link>
      <description>&lt;P&gt;Splunk restart is restart is required if any configuration changes are done, have restarted splunk after these configuration changes?&lt;/P&gt;

&lt;P&gt;Even after restart it doesn't work, let me know.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 14:39:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/search-time-regular-expression/m-p/424779#M10033</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2019-08-07T14:39:17Z</dc:date>
    </item>
  </channel>
</rss>

