<?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: Query and Reporting in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/511983#M2927</link>
    <description>&lt;P&gt;Thanks for the response.&amp;nbsp; I could see the lastTime provided by metadata is different to the last(_time) in tstats.&lt;/P&gt;&lt;P&gt;Giving me different results. Any idea, How we can get the metadata lastTime field using tstats?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jul 2020 19:48:24 GMT</pubDate>
    <dc:creator>revanthammineni</dc:creator>
    <dc:date>2020-07-31T19:48:24Z</dc:date>
    <item>
      <title>Query and Reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/511257#M2824</link>
      <description>&lt;P&gt;Hi Everyone! I'm working on a report to find out the hosts that are not reporting logs. Since it's a huge data set, I'm using command metadata. This command is not allowing me to set up an alert based on time range values. Can anyone suggest me how to pass dynamic time values to the command metadata.&lt;/P&gt;&lt;P&gt;Below is my query.&lt;/P&gt;&lt;P&gt;|metadata type=hosts index=_internal splunk_server_group=* | fields host | join type=left host [|metadata index=os* type=hosts splunk_server_group=* ] | table host lastTime | eval reporting=case(isnull(lastTime), "no", 1=1, "yes") | eval time=strftime(lastTime,"%b %d %T %Y %Z")&amp;nbsp; |dedup host |where reporting="no"&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 03:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/511257#M2824</guid>
      <dc:creator>revanthammineni</dc:creator>
      <dc:date>2020-07-28T03:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Query and Reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/511333#M2833</link>
      <description>&lt;P&gt;Try using tstats.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats values(host) as host where index=_internal splunk_server_group=* 
| fields host 
| join type=left host 
    [| tstats values(host) as host, latest(_time) as lastTime where index=windows splunk_server_group=* ] 
| table host lastTime 
| eval reporting=case(isnull(lastTime), "no", 1=1, "yes") 
| eval time=strftime(lastTime,"%b %d %T %Y %Z") 
| dedup host
| where reporting="no"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/511333#M2833</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-28T13:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query and Reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/511372#M2840</link>
      <description>&lt;P&gt;From splunk slack: !missinghosts&lt;/P&gt;&lt;P&gt;There are a lot of options for finding hosts or sources that stop submitting events:&lt;BR /&gt;Meta Woot! &lt;A href="https://splunkbase.splunk.com/app/2949/" target="_blank"&gt;https://splunkbase.splunk.com/app/2949/&lt;/A&gt;&lt;BR /&gt;TrackMe &lt;A href="https://splunkbase.splunk.com/app/4621/" target="_blank"&gt;https://splunkbase.splunk.com/app/4621/&lt;/A&gt;&lt;BR /&gt;Broken Hosts App for Splunk &lt;A href="https://splunkbase.splunk.com/app/3247/" target="_blank"&gt;https://splunkbase.splunk.com/app/3247/&lt;/A&gt;&lt;BR /&gt;Alerts for Splunk Admins ("ForwarderLevel" alerts) &lt;A href="https://splunkbase.splunk.com/app/3796/" target="_blank"&gt;https://splunkbase.splunk.com/app/3796/&lt;/A&gt;&lt;BR /&gt;Monitoring Console &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/DMC/Configureforwardermonitoring" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/DMC/Configureforwardermonitoring&lt;/A&gt;&lt;BR /&gt;Deployment Server &lt;A href="https://docs.splunk.com/Documentation/DepMon/latest/DeployDepMon/Troubleshootyourdeployment#Forwarder_warnings" target="_blank"&gt;https://docs.splunk.com/Documentation/DepMon/latest/DeployDepMon/Troubleshootyourdeployment#Forwarder_warnings&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Some helpful posts:&lt;BR /&gt;&lt;A href="https://lantern.splunk.com/hc/en-us/articles/360048503294-Hosts-logging-data-in-a-certain-timeframe" target="_blank"&gt;https://lantern.splunk.com/hc/en-us/articles/360048503294-Hosts-logging-data-in-a-certain-timeframe&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.duanewaddle.com/proving-a-negative/" target="_blank"&gt;https://www.duanewaddle.com/proving-a-negative/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 15:05:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/511372#M2840</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-28T15:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query and Reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/511983#M2927</link>
      <description>&lt;P&gt;Thanks for the response.&amp;nbsp; I could see the lastTime provided by metadata is different to the last(_time) in tstats.&lt;/P&gt;&lt;P&gt;Giving me different results. Any idea, How we can get the metadata lastTime field using tstats?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 19:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/511983#M2927</guid>
      <dc:creator>revanthammineni</dc:creator>
      <dc:date>2020-07-31T19:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query and Reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/511985#M2928</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;if I recall right, you must use use “All time” with metadata to get real results.&amp;nbsp;&lt;BR /&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 20:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/511985#M2928</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-31T20:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Query and Reporting</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/512188#M2940</link>
      <description>&lt;P&gt;Yes. But I'm trying to set up an alerts. Command metadata not allowing me to dynamically pass time values. Also, tstats is not giving me the correct lastTime.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 17:33:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Query-and-Reporting/m-p/512188#M2940</guid>
      <dc:creator>revanthammineni</dc:creator>
      <dc:date>2020-08-03T17:33:40Z</dc:date>
    </item>
  </channel>
</rss>

