<?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: create a dashboard that tracks 1 or 2 log feeds in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520699#M35044</link>
    <description>&lt;P&gt;The following is what I need to achieve:&lt;/P&gt;&lt;P&gt;you are to create a dashboard that tracks log feeds&lt;/P&gt;&lt;P&gt;​so I imagine it would look like a table and have things like&lt;/P&gt;&lt;P&gt;log feed&amp;nbsp; |&amp;nbsp; last seen&amp;nbsp;and it would be colored based on some threshhold (last seen 24 hours red, last seen 10 mins green). It will include:&lt;/P&gt;&lt;OL&gt;&lt;OL&gt;&lt;LI&gt;color for categorizing critical levels&lt;/LI&gt;&lt;LI&gt;email alerting&lt;/LI&gt;&lt;LI&gt;can start with small features&lt;/LI&gt;&lt;/OL&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this splunk Query:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| tstats latest(_time) as latest where index=* earliest=-48h by host | eval minutesago=round((now()-latest)/60,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DO you think this query would be very proper for what I am trying to achieve? I have some issues with the color part of it. I did try using visualization single value 42 for the color but I do not see it. I need your help all it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Sep 2020 23:44:55 GMT</pubDate>
    <dc:creator>ngwodo</dc:creator>
    <dc:date>2020-09-21T23:44:55Z</dc:date>
    <item>
      <title>How to create a dashboard that tracks 1 or 2 log feeds?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520194#M34955</link>
      <description>&lt;P&gt;you are to create a dashboard that tracks log feeds&lt;/P&gt;
&lt;P&gt;​so I imagine it would look like a table and have things like&lt;/P&gt;
&lt;P&gt;log feed&amp;nbsp; |&amp;nbsp; last seen&amp;nbsp;and it would be colored based on some threshhold (last seen 24 hours red, last seen 10 mins green). It will include:&lt;/P&gt;
&lt;OL&gt;
&lt;OL&gt;
&lt;LI&gt;color for categorizing critical levels&lt;/LI&gt;
&lt;LI&gt;email alerting&lt;/LI&gt;
&lt;LI&gt;can start with small features&lt;/LI&gt;
&lt;/OL&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 24 May 2022 20:22:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520194#M34955</guid>
      <dc:creator>ngwodo</dc:creator>
      <dc:date>2022-05-24T20:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520195#M34956</link>
      <description>&lt;P&gt;There as always with splunk a number of different ways to do this. For example, you could have a panel for each log feed with a "&amp;lt;single&amp;gt;" element in each. The data in the single could be driven by the number of days since the latest entry in the log. The number displayed could be coloured depending on its value giving you the various levels of threshold you want.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 18:58:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520195#M34956</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-17T18:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520204#M34958</link>
      <description>&lt;P&gt;Please how do you do the coloring? Do you do it by editing XML?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 20:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520204#M34958</guid>
      <dc:creator>ngwodo</dc:creator>
      <dc:date>2020-09-17T20:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520205#M34959</link>
      <description>&lt;P&gt;Please what would be the Splunk query to achieve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 20:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520205#M34959</guid>
      <dc:creator>ngwodo</dc:creator>
      <dc:date>2020-09-17T20:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520210#M34961</link>
      <description>&lt;P&gt;Yes, edit the XML Add a couple of options to the single&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;option name="rangeValues"&amp;gt;[0,10,20,30]&amp;lt;/option&amp;gt;
&amp;lt;option name="rangeColors"&amp;gt;["0x00FF00","0xFFFF00","0x0000FF","0xFF0000"]&amp;lt;/option&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;You choose appropriate values and colours&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 20:18:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520210#M34961</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-17T20:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520216#M34963</link>
      <description>&lt;P&gt;Thanks. What about the splunk queries to monitor these logs in 24 hours and also 10 minutes.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 21:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520216#M34963</guid>
      <dc:creator>ngwodo</dc:creator>
      <dc:date>2020-09-17T21:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520225#M34965</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval secondsago=now()-_time&lt;/LI-CODE&gt;&lt;P&gt;So you can set your ranges to be 10*60 (for 10 minutes) and 24*60*60 (for 24 hours) etc.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 23:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520225#M34965</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-17T23:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520233#M34966</link>
      <description>&lt;P&gt;Please do I have to include something like this before the eval command?&lt;/P&gt;&lt;P&gt;index=main source=windowseventlog sourcetype=access_combined_wcookie | eval secondsago=now()-_time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please how would to include the splunk time range you specified in your last command in the querries?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 01:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520233#M34966</guid>
      <dc:creator>ngwodo</dc:creator>
      <dc:date>2020-09-18T01:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520250#M34971</link>
      <description>&lt;P&gt;The first part is your search. This retrieves (matching) event records from your index. The eval will create an additional field for each event for you to use. It would probably be better to do it this way&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main source=windowseventlog sourcetype=access_combined_wcookie 
| head 1
| eval minutesago=round((now()-_time)/60,0)&lt;/LI-CODE&gt;&lt;P&gt;Since you are interested in when the latest event occurred. Splunk should have put a timestamp on each record in the _time field. This eval calculates&amp;nbsp; the number of minutes ago that the event was based on this timestamp.&lt;/P&gt;&lt;P&gt;In your single, either by editing the XML or by modifying the format of the single in the dashboard editor, your set the range for the different colours you want e.g 0, 10, 30,, 60 etc. for 10 minute, 30 minute, 60 minute thresholds&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 06:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520250#M34971</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-18T06:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520363#M34983</link>
      <description>&lt;P&gt;Thanks. what splunk queries would you add to the previous query you wrote to specify different colors for 24 hours and then for 10 mins?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 18:00:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520363#M34983</guid>
      <dc:creator>ngwodo</dc:creator>
      <dc:date>2020-09-18T18:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520391#M34989</link>
      <description>&lt;P&gt;The query is OK - you configure the colours by editing the dashboard and formatting the single&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 659px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10891iAB3150098B01C627/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 21:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520391#M34989</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-18T21:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520455#M34996</link>
      <description>&lt;P&gt;I got warning message when I added those couple of lines to the XML. Why do I get the warning error message when I edit XML for the colors?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 02:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520455#M34996</guid>
      <dc:creator>ngwodo</dc:creator>
      <dc:date>2020-09-20T02:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520461#M34997</link>
      <description>&lt;P&gt;Thanks. I wrote this query:&lt;/P&gt;&lt;P&gt;| tstats latest(_time) as latest where index=* earliest=-24h by host&lt;BR /&gt;| eval recent = if(latest &amp;gt; relative_time(now(),"-5m"),1,0), realLatest = strftime(latest,"%c")&lt;BR /&gt;| where recent=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question: Do you think this query will answer my original question of:&lt;/P&gt;&lt;P&gt;Writing a query that will be used to create a dashboard tracking 1 or 2 log&amp;nbsp;feeds that would be colored based on some threshhold (last seen 24 hours red, last seen 10 mins green) ? Please add to the query if there is anything missing. I added the lines for colors in the XML edit for the dashboard but it is giving me validation error message. Your help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 05:37:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520461#M34997</guid>
      <dc:creator>ngwodo</dc:creator>
      <dc:date>2020-09-20T05:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520462#M34998</link>
      <description>&lt;P&gt;step 1 - when you run this query on search, do you get the logs/events you wanted?&lt;/P&gt;&lt;P&gt;step 2 - if yes, then, create a dashboard with this query and then you can plan about the coloring.&amp;nbsp;&lt;/P&gt;&lt;P&gt;step 3 - if no, then, lets troubleshoot this query until you find out your expected logs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 05:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520462#M34998</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-20T05:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520468#M35002</link>
      <description>&lt;P&gt;No I don't think it does what I think you want. What if you the latest entries in the index is over 24 hours? You are only going to get entries by host if the latest entry for that host is between 24 hours and 5 minutes ago.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 09:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520468#M35002</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-20T09:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520481#M35003</link>
      <description>&lt;P&gt;If you want to use tstats try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as latest where index=* earliest=-48h by host
| eval minutesago=round((now()-latest)/60,0)&lt;/LI-CODE&gt;&lt;P&gt;Then set the colour ranges for the minutesago column as appropriate&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 676px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10902iA89671CA44C31375/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously, this still only goes back 48 hours so if your latest entry is older than that, you would not see it&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2020 09:57:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520481#M35003</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-20T09:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520528#M35018</link>
      <description>&lt;P&gt;Thanks. I configured the single value 42 for colors but the green color is not showing. How do I get the green color to be showing for 24 hours threshold and how do I get the red color to show for the 10 minutes threshold? Please assist with queries or visualization configurations.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 01:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520528#M35018</guid>
      <dc:creator>ngwodo</dc:creator>
      <dc:date>2020-09-21T01:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520529#M35019</link>
      <description>&lt;LI-SPOILER&gt;Please why do you have earliest=-48h instead of 24h for the threshold?&amp;nbsp; We only have 2 threshold to deal with. The threshold is 24 hours for red&amp;nbsp; for the first log feed and last 10 minutes for green for the second log feed. So we are looking at 2 different splunk queries to accomplish this threshold. Please assist.&lt;/LI-SPOILER&gt;</description>
      <pubDate>Mon, 21 Sep 2020 01:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520529#M35019</guid>
      <dc:creator>ngwodo</dc:creator>
      <dc:date>2020-09-21T01:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520556#M35028</link>
      <description>&lt;P&gt;If you limit your query to -24h, then you will get no results if the last time the log was written to is more than 24 hour ago. The -48h was at least giving you a chance at finding if the log was last written to between 48 and 24 hours ago and showing that in red. You could make it -7d or whatever timespan you want to go back looking for when the log was last written to.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 07:06:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520556#M35028</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-21T07:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: create a dashboard that tracks 1 or 2 log feeds</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520605#M35033</link>
      <description>&lt;P&gt;Thanks. Is the set color from your previous reply&amp;nbsp; only for 24 hours threshold or for both 24 hours and 10 minutes? Please let me know. I set the color as you stated but did not see the color change. Please advise.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 12:49:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-that-tracks-1-or-2-log-feeds/m-p/520605#M35033</guid>
      <dc:creator>ngwodo</dc:creator>
      <dc:date>2020-09-21T12:49:37Z</dc:date>
    </item>
  </channel>
</rss>

