<?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 Filter the Splunk results into a visualization in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575124#M200404</link>
    <description>&lt;P&gt;I have Splunk results in following format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-11-13 01:02:50.127 ERROR 23 --- [ taskExecutor-2] c.c.p.r.service.RedisService             : The Redis Cache had no record for key: null Returning empty list.

2021-10-22 21:11:51.996 ERROR 22 --- [ taskExecutor-1] c.c.p.r.service.SftpService           : Could not delete file: /-/XYZ.FILE - 4: Failure

2021-10-22 02:05:14.426 ERROR 22 --- [ taskExecutor-1] c.c.p.r.service.SftpService           : Could not delete file: /-/XYZ.FILE - 4: Failure&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to create a Visualization in the following format - In the attached screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The **count variable** is based on the "Error Message" only. Since "Could not delete file: /-/XYZ.FILE - 4: Failure" appeared twice, hence the count is set to 2. As the logs grow, and this message occurrence increase, this count should increase too.&lt;/P&gt;&lt;P&gt;I tried using erex and substring from Splunk but kinda failed miserably!&lt;/P&gt;&lt;P&gt;Any help on how to form the Splunk query for this visualization would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 19:35:45 GMT</pubDate>
    <dc:creator>kirti_gupta12</dc:creator>
    <dc:date>2021-11-16T19:35:45Z</dc:date>
    <item>
      <title>Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575124#M200404</link>
      <description>&lt;P&gt;I have Splunk results in following format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-11-13 01:02:50.127 ERROR 23 --- [ taskExecutor-2] c.c.p.r.service.RedisService             : The Redis Cache had no record for key: null Returning empty list.

2021-10-22 21:11:51.996 ERROR 22 --- [ taskExecutor-1] c.c.p.r.service.SftpService           : Could not delete file: /-/XYZ.FILE - 4: Failure

2021-10-22 02:05:14.426 ERROR 22 --- [ taskExecutor-1] c.c.p.r.service.SftpService           : Could not delete file: /-/XYZ.FILE - 4: Failure&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to create a Visualization in the following format - In the attached screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The **count variable** is based on the "Error Message" only. Since "Could not delete file: /-/XYZ.FILE - 4: Failure" appeared twice, hence the count is set to 2. As the logs grow, and this message occurrence increase, this count should increase too.&lt;/P&gt;&lt;P&gt;I tried using erex and substring from Splunk but kinda failed miserably!&lt;/P&gt;&lt;P&gt;Any help on how to form the Splunk query for this visualization would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 19:35:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575124#M200404</guid>
      <dc:creator>kirti_gupta12</dc:creator>
      <dc:date>2021-11-16T19:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575126#M200405</link>
      <description />
      <pubDate>Tue, 16 Nov 2021 19:35:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575126#M200405</guid>
      <dc:creator>kirti_gupta12</dc:creator>
      <dc:date>2021-11-16T19:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575131#M200406</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Your base search
| rex “^(?&amp;lt;Time&amp;gt;\S+\s+\S+)\s+\S+\s+(?&amp;lt;Error_Code&amp;gt;\d+)[^\]]+\]\s+(?&amp;lt;Service_Name&amp;gt;\S+)\:\s+(?&amp;lt;Error_Message&amp;gt;.+)”
| table Error_Message Time Error_Code Service_Name 
| eventstats count as Count by Error_Message Error_Code Service_Name&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Nov 2021 20:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575131#M200406</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2021-11-16T20:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575135#M200409</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I ran the query:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=rac_sd | rex “^(?&amp;lt;Time&amp;gt;\S+\s+\S+)\s+\S+\s+(?&amp;lt;Error_Code&amp;gt;\d+)[^\]]+\]\s+(?&amp;lt;Service_Name&amp;gt;\S+)\:\s+(?&amp;lt;Error_Message&amp;gt;.+)”
| table Error_Message Time Error_Code Service_Name 
| eventstats count as Count by Error_Message Error_Code Service_Name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error in 'SearchParser': Missing a search command before '^'. Error at position '76' of search query 'search index=rac_sd | rex “^(?&amp;lt;Time&amp;gt;\S+\s+\S+)\s...{snipped} {errorcontext = Code&amp;gt;\d+)[^\]]+\]\s+(}'.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 20:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575135#M200409</guid>
      <dc:creator>kirti_gupta12</dc:creator>
      <dc:date>2021-11-16T20:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575139#M200411</link>
      <description>&lt;P&gt;The double quotes may be causing the problem. Delete and re-type quotes and try again.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 20:20:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575139#M200411</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2021-11-16T20:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575148#M200413</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;I did as suggested. The error is gone but no results are showing up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the base query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=rac_sd "ERROR * ---" "taskExecutor-*" | table msg&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the results show up.&lt;/P&gt;&lt;P&gt;But when I'm using your query, no results are showing up.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 20:53:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575148#M200413</guid>
      <dc:creator>kirti_gupta12</dc:creator>
      <dc:date>2021-11-16T20:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575162#M200416</link>
      <description>&lt;P&gt;This query works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=rac_sd "ERROR * ---" "taskExecutor-*" 
|  rex field=msg "^(?&amp;lt;Time&amp;gt;\S+\s+\S+)\s+\S+\s+(?&amp;lt;Error_Code&amp;gt;\d+)[^\]]+\]\s+(?&amp;lt;Service_Name&amp;gt;\S+)\s+:\s+(?&amp;lt;Error_Message&amp;gt;.+)"
| table Error_Message Time Error_Code Service_Name 
| eventstats count as Count by Error_Message Error_Code Service_Name 
| sort -Count&lt;/LI-CODE&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 22:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575162#M200416</guid>
      <dc:creator>kirti_gupta12</dc:creator>
      <dc:date>2021-11-16T22:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575175#M200421</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I'm getting the results as the attached screenshot!&lt;/P&gt;&lt;P&gt;But if I want to don't wanna show multiple rows with same Error_message, as in, just one unique Error_message, and adding the times (of each of those rows with that Error_msg) in a list field separated by comma, like this in a table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error_msg: "&lt;SPAN&gt;Could not delete file: /-/PCS.P.KSZ4750J.TRIG.FILE - 4: Failure&lt;/SPAN&gt;"&amp;nbsp;&lt;BR /&gt;Count: 4&lt;BR /&gt;Service Name: "&lt;SPAN&gt;c.c.p.r.service.RpsSftpService&lt;/SPAN&gt;"&lt;BR /&gt;Error code: 22&lt;BR /&gt;Time: "&lt;SPAN&gt;2021-11-16 22:23:54.905,&amp;nbsp;2021-11-18 22:23:31.511,&amp;nbsp;2021-11-17 22:23:31.511&lt;/SPAN&gt;"&lt;BR /&gt;&lt;BR /&gt;Can you please help enhance the query for the same?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 23:06:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575175#M200421</guid>
      <dc:creator>kirti_gupta12</dc:creator>
      <dc:date>2021-11-16T23:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575186#M200424</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=rac_sd "ERROR * ---" "taskExecutor-*" 
|  rex field=msg "^(?&amp;lt;Time&amp;gt;\S+\s+\S+)\s+\S+\s+(?&amp;lt;Error_Code&amp;gt;\d+)[^\]]+\]\s+(?&amp;lt;Service_Name&amp;gt;\S+)\s+:\s+(?&amp;lt;Error_Message&amp;gt;.+)"
| table Error_Message Time Error_Code Service_Name 
| stats last(Time) as Timr count as Count by Error_Message Error_Code Service_Name 
| sort -Count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 00:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575186#M200424</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2021-11-17T00:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575187#M200425</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;this works great but this is showing the time field as the last time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want the all the times in a list for a row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Filter-splunk-results-into-a-List/m-p/575185#M200423" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Filter-splunk-results-into-a-List/m-p/575185#M200423&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 00:45:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575187#M200425</guid>
      <dc:creator>kirti_gupta12</dc:creator>
      <dc:date>2021-11-17T00:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575188#M200426</link>
      <description>&lt;P&gt;Just change "&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;stats last(Time) &lt;/LI-CODE&gt;&lt;P&gt;With&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;stats list(Time) &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Nov 2021 01:00:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575188#M200426</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2021-11-17T01:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575189#M200427</link>
      <description>&lt;P&gt;Perfect!&lt;BR /&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 01:07:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575189#M200427</guid>
      <dc:creator>kirti_gupta12</dc:creator>
      <dc:date>2021-11-17T01:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filter the Splunk results into a visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575190#M200428</link>
      <description>&lt;P&gt;Perfect!&lt;BR /&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 01:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filter-the-Splunk-results-into-a-visualization/m-p/575190#M200428</guid>
      <dc:creator>kirti_gupta12</dc:creator>
      <dc:date>2021-11-17T01:07:22Z</dc:date>
    </item>
  </channel>
</rss>

