<?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: Search for non-indexed message in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-non-indexed-message/m-p/102797#M21562</link>
    <description>&lt;P&gt;A workable approach for this might be to build state in a lookup table.  If you can periodically (and incrementally) update a lookup table with the last time a LogicalDeviceId checked in, then you can easily search that lookup table to figure out when a checkin was over 30 hours ago.  Araitz covers this approach for firewall state in &lt;A href="http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/"&gt;http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You should be able to adapt his approach to this.&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2011 16:24:19 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2011-05-17T16:24:19Z</dc:date>
    <item>
      <title>Search for non-indexed message</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-non-indexed-message/m-p/102796#M21561</link>
      <description>&lt;P&gt;Hi All~&lt;/P&gt;

&lt;P&gt;I am trying to build a query to generate a list/table that shows me devices that have not sent in a specific message to be indexed by Splunk in the last 30 hours.&lt;/P&gt;

&lt;P&gt;I believe I will need to create a subsearch to identify all devices that have communicated with any message in the last 30 days.&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;[ host="Jetstream" earliest=-30d@d | dedup EventId | fields LogicalDeviceId ]&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;The LogicalDeviceId is the unique name for each device being indexed. I want to use that field as the basis for the main search.&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;host="Jetstream" and sourcetype="ObjectEvent" earliest=-30h@h [ subsearch here ] | fields LogicalDeviceId, EventTime&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;For reference, an ObjectEvent looks like:&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;Jetstream xmlns="http://Jetstream.TersoSolutions.com/v1.0/ObjectEvent"&amp;gt;&amp;lt;Header EventId="02d42360-d0df-48f4-aa85-dc5cede9cc4a" EventTime="2011-05-16T05:53:31Z" LogicalDeviceId="10000092" ReceivedTime="2011-05-16T05:57:10Z" /&amp;gt;&amp;lt;ObjectEvent&amp;gt;&amp;lt;DeviceExtensionList /&amp;gt;&amp;lt;/ObjectEvent&amp;gt;&amp;lt;/Jetstream&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The resulting list would be those LogicalDeviceIds that have not sent in an ObjectEvent in the last 30 hours.&lt;/P&gt;

&lt;P&gt;I'm seeing a couple problems. One is obviously speed on the subsearch. Any suggestions how to speed it up? I'm guessing there's a way to do unique on the LogicalDeviceId... The second is I'm not getting any results back.&lt;/P&gt;

&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2011 21:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-non-indexed-message/m-p/102796#M21561</guid>
      <dc:creator>tsukasa</dc:creator>
      <dc:date>2011-05-16T21:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search for non-indexed message</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-for-non-indexed-message/m-p/102797#M21562</link>
      <description>&lt;P&gt;A workable approach for this might be to build state in a lookup table.  If you can periodically (and incrementally) update a lookup table with the last time a LogicalDeviceId checked in, then you can easily search that lookup table to figure out when a checkin was over 30 hours ago.  Araitz covers this approach for firewall state in &lt;A href="http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/"&gt;http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You should be able to adapt his approach to this.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2011 16:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-for-non-indexed-message/m-p/102797#M21562</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-05-17T16:24:19Z</dc:date>
    </item>
  </channel>
</rss>

