<?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 In Splunk dashboard - I should be able to get logs before the last occurrence of a text msg. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-Splunk-dashboard-I-should-be-able-to-get-logs-before-the-last/m-p/580179#M47529</link>
    <description>&lt;P&gt;I have a Splunk Dashboard. It has a text field named "Error msg" and a Time-Picker. (Image - "Dashboard items").&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the text field "Error msg" is empty, I am able to display all the logs within the given time frame.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AppIndex cf_app_name=AppName msg!="*Hikari*" taskExecutor- | fields _time msg | sort -_time | 
| table _time msg&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, If I enter a log message in the&amp;nbsp;text field "Error msg", my goal is, for the given time frame,&lt;/P&gt;&lt;P&gt;1. Search all the occurrences of this "Log message".&lt;BR /&gt;2. Get the latest&amp;nbsp;occurrence.&amp;nbsp;&lt;BR /&gt;3. In the output table, print the logs right before the last occurrence of the msg.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this way, user can trace the error msg and look at the logs (right before the error in the text field) to find what caused the error to happen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how this can be done via a query?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 22:26:21 GMT</pubDate>
    <dc:creator>kirti_gupta12</dc:creator>
    <dc:date>2022-01-06T22:26:21Z</dc:date>
    <item>
      <title>In Splunk dashboard - I should be able to get logs before the last occurrence of a text msg.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-Splunk-dashboard-I-should-be-able-to-get-logs-before-the-last/m-p/580179#M47529</link>
      <description>&lt;P&gt;I have a Splunk Dashboard. It has a text field named "Error msg" and a Time-Picker. (Image - "Dashboard items").&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the text field "Error msg" is empty, I am able to display all the logs within the given time frame.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=AppIndex cf_app_name=AppName msg!="*Hikari*" taskExecutor- | fields _time msg | sort -_time | 
| table _time msg&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, If I enter a log message in the&amp;nbsp;text field "Error msg", my goal is, for the given time frame,&lt;/P&gt;&lt;P&gt;1. Search all the occurrences of this "Log message".&lt;BR /&gt;2. Get the latest&amp;nbsp;occurrence.&amp;nbsp;&lt;BR /&gt;3. In the output table, print the logs right before the last occurrence of the msg.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this way, user can trace the error msg and look at the logs (right before the error in the text field) to find what caused the error to happen.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how this can be done via a query?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 22:26:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-Splunk-dashboard-I-should-be-able-to-get-logs-before-the-last/m-p/580179#M47529</guid>
      <dc:creator>kirti_gupta12</dc:creator>
      <dc:date>2022-01-06T22:26:21Z</dc:date>
    </item>
  </channel>
</rss>

