<?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 How can I extract the 3 different certificate errors below into a single field within a Splunk query as part of a saved search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-different-certificate-errors-below-into/m-p/345584#M102384</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to extract the 3 different certificate errors below into a single field called CertErrors within a Splunk query as part of a saved search. The regex needs to extract from the final colon after 0126006:4: Peer cert verify error up to the first (&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01260006:4: Peer cert verify error: certificate has expired (depth 0
01260006:4: Peer cert verify error: certificate revoked (depth
01260006:4: Peer cert verify error: unable to get local issuer certificate (depth)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2018 11:10:15 GMT</pubDate>
    <dc:creator>jacqu3sy</dc:creator>
    <dc:date>2018-02-05T11:10:15Z</dc:date>
    <item>
      <title>How can I extract the 3 different certificate errors below into a single field within a Splunk query as part of a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-different-certificate-errors-below-into/m-p/345584#M102384</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to extract the 3 different certificate errors below into a single field called CertErrors within a Splunk query as part of a saved search. The regex needs to extract from the final colon after 0126006:4: Peer cert verify error up to the first (&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01260006:4: Peer cert verify error: certificate has expired (depth 0
01260006:4: Peer cert verify error: certificate revoked (depth
01260006:4: Peer cert verify error: unable to get local issuer certificate (depth)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 11:10:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-different-certificate-errors-below-into/m-p/345584#M102384</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2018-02-05T11:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract the 3 different certificate errors below into a single field within a Splunk query as part of a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-different-certificate-errors-below-into/m-p/345585#M102385</link>
      <description>&lt;P&gt;hi&lt;BR /&gt;
Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex  max_match=0 "error:\s(?&amp;lt;CertErrors&amp;gt;[^(]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Run this anywhere search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval _raw="01260006:4: Peer cert verify error: certificate has expired (depth 0
01260006:4: Peer cert verify error: certificate revoked (depth
01260006:4: Peer cert verify error: unable to get local issuer certificate (depth"
|rex max_match=0 "error:\s(?&amp;lt;CertErrors&amp;gt;[^(]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Feb 2018 11:24:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-different-certificate-errors-below-into/m-p/345585#M102385</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-05T11:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract the 3 different certificate errors below into a single field within a Splunk query as part of a saved search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-different-certificate-errors-below-into/m-p/345586#M102386</link>
      <description>&lt;P&gt;Perfect, thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 11:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-the-3-different-certificate-errors-below-into/m-p/345586#M102386</guid>
      <dc:creator>jacqu3sy</dc:creator>
      <dc:date>2018-02-05T11:27:37Z</dc:date>
    </item>
  </channel>
</rss>

