<?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: Raw data only parsing the first instance in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501409#M139604</link>
    <description>&lt;P&gt;What is &lt;CODE&gt;&amp;lt;search criteria&amp;gt;&lt;/CODE&gt;?&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2020 13:00:35 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-03-27T13:00:35Z</dc:date>
    <item>
      <title>Raw data only parsing the first instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501408#M139603</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I have a data like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;X1=[A(status=X, reason=Y), A(status=Z, reason=Y), A(status=xyz, reason=abc)]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Now when I am using the query &lt;CODE&gt;&amp;lt;search criteria&amp;gt; | table status, reason&lt;/CODE&gt; it is giving values "X" and "Y"&lt;BR /&gt;
1. Trying to understand why it is not considering the values Z &amp;amp; Y and xyz &amp;amp; abc&lt;BR /&gt;
2. If I have to get the result of values Z &amp;amp; Y and xyz &amp;amp; abc how to retrieve?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 03:10:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501408#M139603</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-03-27T03:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data only parsing the first instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501409#M139604</link>
      <description>&lt;P&gt;What is &lt;CODE&gt;&amp;lt;search criteria&amp;gt;&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 13:00:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501409#M139604</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-27T13:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data only parsing the first instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501410#M139605</link>
      <description>&lt;P&gt;Hi @richgalloway the raw data is like &lt;CODE&gt;service: mnp, o=123, X1=[A(status=X, reason=Y), A(status=Z, reason=Y), A(status=xyz, reason=abc)]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and my &lt;CODE&gt;&amp;lt;search criteria&amp;gt;&lt;/CODE&gt; is &lt;CODE&gt;service&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 14:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501410#M139605</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-03-28T14:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data only parsing the first instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501411#M139606</link>
      <description>&lt;P&gt;sample query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _raw="service: mnp, o=123, X1=[A(status=X, reason=Y), A(status=Z, reason=Y), A(status=xyz, reason=abc)]"
| rex max_match=0 "status=(?&amp;lt;status&amp;gt;\w+), reason=(?&amp;lt;reason&amp;gt;\w+)"
| table status reason
| eval _counter = mvrange(0,mvcount(status))
| stats list(*) as * by _counter
| foreach * [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; = mvindex('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;', _counter)]
| fields - _*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;recommend:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search criteria&amp;gt; 
| rex max_match=0 "status=(?&amp;lt;status&amp;gt;\w+), reason=(?&amp;lt;reason&amp;gt;\w+)"
| fields status reason
| eval _counter = mvrange(0,mvcount(status))
| stats list(*) as * by _counter
| foreach * [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; = mvindex('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;', _counter)]
| fields - _*
| table status, reason
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Mar 2020 23:09:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501411#M139606</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-28T23:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data only parsing the first instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501412#M139607</link>
      <description>&lt;P&gt;Hello @to4kawa &lt;BR /&gt;
It is still giving me values "X" and "Y"&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 23:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501412#M139607</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-03-28T23:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data only parsing the first instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501413#M139608</link>
      <description>&lt;P&gt;use &lt;CODE&gt;where&lt;/CODE&gt; OR &lt;CODE&gt;search&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 23:56:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501413#M139608</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-28T23:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data only parsing the first instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501414#M139609</link>
      <description>&lt;P&gt;I am only using &lt;CODE&gt;where&lt;/CODE&gt; but still the same&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 00:50:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501414#M139609</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-03-29T00:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data only parsing the first instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501415#M139610</link>
      <description>&lt;P&gt;I see, your query is wrong&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 02:43:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501415#M139610</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-29T02:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data only parsing the first instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501416#M139611</link>
      <description>&lt;P&gt;Hi @to4kawa &lt;BR /&gt;
can you please explain a bit more when you say the query is wrong? What I meant above is in the complete query I am not using &lt;CODE&gt;search&lt;/CODE&gt; instead using &lt;CODE&gt;where&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;service&lt;BR /&gt;
| where not reason like "%P%"&lt;BR /&gt;
|table status, reason&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 01:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501416#M139611</guid>
      <dc:creator>praddasg</dc:creator>
      <dc:date>2020-03-31T01:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Raw data only parsing the first instance</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501417#M139612</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| where not reason like "%P%" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This can't work.&lt;BR /&gt;
where &lt;CODE&gt;"%P%"&lt;/CODE&gt; come from?&lt;BR /&gt;
Don't you select &lt;CODE&gt;NOT (status="X" AND reason="Y")&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 21:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Raw-data-only-parsing-the-first-instance/m-p/501417#M139612</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-31T21:27:16Z</dc:date>
    </item>
  </channel>
</rss>

