<?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 Display latest data in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-latest-data/m-p/511309#M34080</link>
    <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have two slices in a pie chart. This is for deployment. One is for Successful log and another is for failure log. We are checking for the count for successful and failure logs. Consider, we have 10 successful log and 2 failure logs. Those two failure logs details have been analysed and deployments have happened and it got reflected in successful log as well, so that the overall count is 12 successful logs and 2 failure logs. Even though we have deployed the failed labels and those are reflecting fine in successful log slice, the same failure log is coming in failure log as well which is making mismatch in the original count. Is there any way to have the latest data alone in the pie chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note, we have pie chart and we are having two slices -&amp;gt; deployment success and deployment failure&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 11:28:43 GMT</pubDate>
    <dc:creator>thaara</dc:creator>
    <dc:date>2020-07-28T11:28:43Z</dc:date>
    <item>
      <title>Display latest data</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-latest-data/m-p/511309#M34080</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have two slices in a pie chart. This is for deployment. One is for Successful log and another is for failure log. We are checking for the count for successful and failure logs. Consider, we have 10 successful log and 2 failure logs. Those two failure logs details have been analysed and deployments have happened and it got reflected in successful log as well, so that the overall count is 12 successful logs and 2 failure logs. Even though we have deployed the failed labels and those are reflecting fine in successful log slice, the same failure log is coming in failure log as well which is making mismatch in the original count. Is there any way to have the latest data alone in the pie chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note, we have pie chart and we are having two slices -&amp;gt; deployment success and deployment failure&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 11:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-latest-data/m-p/511309#M34080</guid>
      <dc:creator>thaara</dc:creator>
      <dc:date>2020-07-28T11:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Display latest data</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-latest-data/m-p/511323#M34083</link>
      <description>Please share the search you are using to create the pie chart.</description>
      <pubDate>Tue, 28 Jul 2020 12:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-latest-data/m-p/511323#M34083</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-28T12:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display latest data</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-latest-data/m-p/511334#M34086</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;Please find the query below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=XXX sourcetype=YYY source=*deploy_status.list host=ABC OR host=DEF&lt;BR /&gt;| stats count by Deploy_Status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI, we have given field extractions for the comma delimiters&lt;/P&gt;&lt;P&gt;Output&amp;nbsp; for this log is as below&lt;/P&gt;&lt;P&gt;ABC,project/env,7654321,jenkins-111111.mnopqrs.int-554@abc,Deployment_Failed&lt;BR /&gt;ABC,project/env,7654321,jenkins-121211.qwertyui.int-560,Deployment_Successful&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-latest-data/m-p/511334#M34086</guid>
      <dc:creator>thaara</dc:creator>
      <dc:date>2020-07-28T13:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Display latest data</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-latest-data/m-p/511339#M34087</link>
      <description>&lt;P&gt;It's possible to consider only the latest events, but there needs to be a field that distinguishes one set of failed/success events from another.&amp;nbsp; I'm assuming that's the field with the value 7654321 in the sample logs.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=XXX sourcetype=YYY source=*deploy_status.list host=ABC OR host=DEF
| rex "([^,]+?,){2}(?&amp;lt;id&amp;gt;\d+)"
| dedup id
| stats count by Deploy_Status&lt;/LI-CODE&gt;&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;dedup&lt;/FONT&gt; command takes the most recent event with an unseen value in the given field.&amp;nbsp; &amp;nbsp;If the id field is already extracted (perhaps by another name) then you can remove the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command and update &lt;FONT face="courier new,courier"&gt;dedup&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:48:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-latest-data/m-p/511339#M34087</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-28T13:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display latest data</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Display-latest-data/m-p/511344#M34088</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;one way is to use dedup with sortby option to get the latest/newest event only.&amp;nbsp;&lt;BR /&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Display-latest-data/m-p/511344#M34088</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-28T13:52:19Z</dc:date>
    </item>
  </channel>
</rss>

