<?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 Extract in Props.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-in-Props-conf/m-p/331805#M176948</link>
    <description>&lt;P&gt;I am trying to extract a field from cisco:asa events in my props.conf.&lt;BR /&gt;
Here is the event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jan 23 11:04:57 taaaaaaa %ASA-6-717022: Certificate was successfully validated. serial number: 21EB548E00000000994A, subject name:  cn=XXX1G,ou=CL,ou=LOB,dc=xxx,dc=xxxxx,dc=net.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here is my extract:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-serial_number = ^.*Certificate was successfully validated. serial number:.*\s([0-9A-Z]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;parses fine in regex101&lt;/P&gt;

&lt;P&gt;is this an acceptable regex?&lt;/P&gt;

&lt;P&gt;I only want it for these events.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2018 18:47:46 GMT</pubDate>
    <dc:creator>pfabrizi</dc:creator>
    <dc:date>2018-01-23T18:47:46Z</dc:date>
    <item>
      <title>Extract in Props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-in-Props-conf/m-p/331805#M176948</link>
      <description>&lt;P&gt;I am trying to extract a field from cisco:asa events in my props.conf.&lt;BR /&gt;
Here is the event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jan 23 11:04:57 taaaaaaa %ASA-6-717022: Certificate was successfully validated. serial number: 21EB548E00000000994A, subject name:  cn=XXX1G,ou=CL,ou=LOB,dc=xxx,dc=xxxxx,dc=net.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here is my extract:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-serial_number = ^.*Certificate was successfully validated. serial number:.*\s([0-9A-Z]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;parses fine in regex101&lt;/P&gt;

&lt;P&gt;is this an acceptable regex?&lt;/P&gt;

&lt;P&gt;I only want it for these events.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 18:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-in-Props-conf/m-p/331805#M176948</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2018-01-23T18:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extract in Props.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-in-Props-conf/m-p/331806#M176949</link>
      <description>&lt;P&gt;Hi pfabrizi,&lt;/P&gt;

&lt;P&gt;try this regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Certificate was successfully validated\. serial number:\s+([0-9A-Z]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You missed to escape the &lt;CODE&gt;.&lt;/CODE&gt;. If it is still not working, check if there is no typo in the assigned sourcetype, source or hostname for the props stanza.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 18:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-in-Props-conf/m-p/331806#M176949</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-01-23T18:57:40Z</dc:date>
    </item>
  </channel>
</rss>

