<?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: Capturing specific string from log using regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Capturing-specific-string-from-log-using-regex/m-p/84719#M21596</link>
    <description>&lt;P&gt;Is your question regarding a regex for this specific log event? If so, this one should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "DEBUG alive\?=(?&amp;lt;alive&amp;gt;\S+)\s+native\?=(?&amp;lt;native&amp;gt;\S+)\s+vision\?(?&amp;lt;vision&amp;gt;\S+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 02 Oct 2011 19:48:05 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2011-10-02T19:48:05Z</dc:date>
    <item>
      <title>Capturing specific string from log using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Capturing-specific-string-from-log-using-regex/m-p/84718#M21595</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've below log lines in below format:&lt;/P&gt;

&lt;P&gt;[2011-09-30 23:33:20:465 GMT+00:00][F3951B38F4DF45440927EDF522D5C9FF.http-8080-3][com.abc.xyz.MyWrapper] DEBUG alive?=false native?=true vision?true&lt;/P&gt;

&lt;P&gt;How can I get the values of alive, native &amp;amp; vision variables? Please note that after vision?, there is no "=" sign. Log is not consistent. I also want to count how many of them are with alive &amp;amp;whats the count for native &amp;amp; vision...&lt;/P&gt;

&lt;P&gt;Appreciate your help!&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2011 18:59:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Capturing-specific-string-from-log-using-regex/m-p/84718#M21595</guid>
      <dc:creator>freephoneid</dc:creator>
      <dc:date>2011-10-02T18:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing specific string from log using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Capturing-specific-string-from-log-using-regex/m-p/84719#M21596</link>
      <description>&lt;P&gt;Is your question regarding a regex for this specific log event? If so, this one should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "DEBUG alive\?=(?&amp;lt;alive&amp;gt;\S+)\s+native\?=(?&amp;lt;native&amp;gt;\S+)\s+vision\?(?&amp;lt;vision&amp;gt;\S+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Oct 2011 19:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Capturing-specific-string-from-log-using-regex/m-p/84719#M21596</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-10-02T19:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing specific string from log using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Capturing-specific-string-from-log-using-regex/m-p/84720#M21597</link>
      <description>&lt;P&gt;When do we use rex field=_raw ??...You didn't use it here...Just wondering...&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2011 19:49:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Capturing-specific-string-from-log-using-regex/m-p/84720#M21597</guid>
      <dc:creator>freephoneid</dc:creator>
      <dc:date>2011-10-02T19:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing specific string from log using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Capturing-specific-string-from-log-using-regex/m-p/84721#M21598</link>
      <description>&lt;P&gt;field=_raw is used implicitly unless you specify anything else. Sometimes you might want to use another field for &lt;CODE&gt;rex&lt;/CODE&gt; to operate on, but most commonly you'll extract fields from the raw event data. &lt;CODE&gt;field=_raw&lt;/CODE&gt; can be used to show more explicitly that you're operating on the raw field, but really there is no functional reason for including it.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Capturing-specific-string-from-log-using-regex/m-p/84721#M21598</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2020-09-28T09:56:16Z</dc:date>
    </item>
  </channel>
</rss>

