<?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: Issue with Splunk Query Stats not brining in all values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541462#M153302</link>
    <description>&lt;P&gt;We have a mixture there and I am picking only for production.&lt;BR /&gt;Even if I remove that where clause for the host I am still getting one row which is very strange.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 07:57:43 GMT</pubDate>
    <dc:creator>bhartiya008</dc:creator>
    <dc:date>2021-02-26T07:57:43Z</dc:date>
    <item>
      <title>Issue with Splunk Query Stats not brining in all values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541440#M153291</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have a log which has below lines in it:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"Results":{"Elapsed":"0","Message":"No of Application to Obsolete in Teradata : 4","TraceLevel":"INFO"},"Security":{"Vendor":"CRAB"}}
"Results":{"Elapsed":"0","Message":"Total Application Asset in Teradata : 1696","TraceLevel":"INFO"},"Security":{"Vendor":"CRAB"}}
"Results":{"Elapsed":"0","Message":"Total Application count from SPAM : 1694","TraceLevel":"INFO"},"Security":{"Vendor":"CRAB"}}
"Results":{"Elapsed":"0","Message":" Application/s to Obsolete in Teradata : [PA00007618, PA00007617, PA00007619, PA00007620]","TraceLevel":"INFO"},"Security":{"Vendor":"CRAB"}}
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the output to have the below fields:&lt;BR /&gt;No of Application to Obsolete in Teradata : 4&lt;BR /&gt;Total Application Asset in Teradata : 1696&lt;BR /&gt;Total Application count from SPAM : 1694&lt;BR /&gt;Application/s to Obsolete in Teradata : [PA00007618, PA00007617, PA00007619, PA00007620]&lt;BR /&gt;&lt;BR /&gt;I have built below query but it's only giving me one record :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ExecutionDate Host Total Application count from SPAM : 1694&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=hdt  sourcetype=Teradata_SPAM_logs  | fields -_raw
| where match(_raw, "Host_cdc") and (match(_raw,"Total\sApplication\scount\sfrom\sSPAM\s*") 
OR match(_raw,"Total\sApplication\sAsset\sin\sTeradata\s*") 
OR match(_raw,"No\sof\sApplication\sto\sObsolete\sin\sTeradata\s*") 
OR match(_raw,"List\sof\sApplications\sin\sTeradata\sto\sbe\smarked*") 
)
| rex "(?&amp;lt;Summary&amp;gt;\"Message\":(.*\w+)\s:.*)" 
| rex "(?&amp;lt;Host&amp;gt;\"Host\":(.*\",))" 
| rex "(?&amp;lt;ExecutionDate&amp;gt;\d{4}\-\d{2}\-\d{2})" 
| rex field=Summary mode=sed "s/\"Message\":\"/ /"
| rex field=Summary mode=sed "s/\"TraceLevel.*/ /"
| rex field=Summary mode=sed "s/\".*$//"
| rex field=Host mode=sed "s/\"Channel.*/ /" 
| rex field=Host mode=sed "s/\"Host\":\"/ /" 
| rex field=Host mode=sed "s/\/.*/ /"
| eval Host = replace(Host,"Host_cdc.cdc.CRAB.com", "PRODUCTION") 
| eval Host = replace(Host,"Host_DEV.cdc.CRAB.com", "PROFILING") 
| eval Host = replace(Host,"Host_PP.cdc.CRAB.com", "VALIDATION") 
| stats  values(Summary) as Summary by ExecutionDate, Host
| where isnotnull(Summary)&lt;/LI-CODE&gt;&lt;P&gt;Can anyone tell me where is the problem here?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 06:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541440#M153291</guid>
      <dc:creator>bhartiya008</dc:creator>
      <dc:date>2021-02-26T06:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Splunk Query Stats not brining in all values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541449#M153292</link>
      <description>&lt;P&gt;Try these rex&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\"Message\":\"(?&amp;lt;Summary&amp;gt;[^\"]+)" 
| rex "\"Host\":\"(?&amp;lt;Host&amp;gt;[^\"]+)" 
| rex "(?&amp;lt;ExecutionDate&amp;gt;\d{4}\-\d{2}\-\d{2})" &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 26 Feb 2021 07:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541449#M153292</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-26T07:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Splunk Query Stats not brining in all values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541452#M153295</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;-- tried the below , but still getting the same one row.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 07:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541452#M153295</guid>
      <dc:creator>bhartiya008</dc:creator>
      <dc:date>2021-02-26T07:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Splunk Query Stats not brining in all values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541455#M153297</link>
      <description>&lt;P&gt;When I run the part till match ..I am able to see all the 4 rows in the event data.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 07:40:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541455#M153297</guid>
      <dc:creator>bhartiya008</dc:creator>
      <dc:date>2021-02-26T07:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Splunk Query Stats not brining in all values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541457#M153299</link>
      <description>&lt;P&gt;The final line of your example doesn't match the where clause, but that doesn't explain why only one does.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 07:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541457#M153299</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-26T07:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Splunk Query Stats not brining in all values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541458#M153300</link>
      <description>&lt;P&gt;Are all the examples from the production host, or do you have a mixture?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 07:53:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541458#M153300</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-26T07:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Splunk Query Stats not brining in all values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541462#M153302</link>
      <description>&lt;P&gt;We have a mixture there and I am picking only for production.&lt;BR /&gt;Even if I remove that where clause for the host I am still getting one row which is very strange.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 07:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-Splunk-Query-Stats-not-brining-in-all-values/m-p/541462#M153302</guid>
      <dc:creator>bhartiya008</dc:creator>
      <dc:date>2021-02-26T07:57:43Z</dc:date>
    </item>
  </channel>
</rss>

