<?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: How Report Any Host That Hasn't Had an Event From Source=&amp;quot;/var*&amp;quot; in &amp;quot;X&amp;quot; Minutes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496910#M140308</link>
    <description>&lt;P&gt;between no2 and no3,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex mode=sed field=source "s/\/\w+/\/*/3"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;to force them to match.&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2020 20:37:36 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-05-13T20:37:36Z</dc:date>
    <item>
      <title>How Report Any Host That Hasn't Had an Event From Source="/var*" in "X" Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496907#M140305</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;

&lt;P&gt;I want to report on any Linux system that hasn't had an event in /var* for 30 minutes.  I was going to use Source="/var/log/messages" but our admins told me that they want anything below /var to be reported on.  I tried using the metadata command but that didn't get me anywhere.  Does anyone have any suggestions?  Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 16:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496907#M140305</guid>
      <dc:creator>SplunkLunk</dc:creator>
      <dc:date>2020-05-13T16:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: How Report Any Host That Hasn't Had an Event From Source="/var*" in "X" Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496908#M140306</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| tstats count as Counts where source="/var/*" by source host
| inputlookup append=t your_host.csv
| stats values(Counts) as count by source host
| fillnull count
| where count=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;your_host.csv:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host,source
A,/var/log/messages
A,/var/log/
B,/var/log/messages
B,....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;Field name&lt;/EM&gt; is case sensitive. &lt;CODE&gt;Source&lt;/CODE&gt; is wrong.&lt;BR /&gt;
I don't know what's gold. so both source and host is aggregated.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 19:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496908#M140306</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-13T19:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: How Report Any Host That Hasn't Had an Event From Source="/var*" in "X" Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496909#M140307</link>
      <description>&lt;P&gt;Thanks.  Will a wildcard in the CSV file work?  Could the source be /var/log/*&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 20:04:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496909#M140307</guid>
      <dc:creator>SplunkLunk</dc:creator>
      <dc:date>2020-05-13T20:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: How Report Any Host That Hasn't Had an Event From Source="/var*" in "X" Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496910#M140308</link>
      <description>&lt;P&gt;between no2 and no3,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex mode=sed field=source "s/\/\w+/\/*/3"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;to force them to match.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 20:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496910#M140308</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-13T20:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How Report Any Host That Hasn't Had an Event From Source="/var*" in "X" Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496911#M140309</link>
      <description>&lt;P&gt;Thanks but I must be doing something wrong.  I've added a lookup file with the format:&lt;/P&gt;

&lt;P&gt;host, source&lt;BR /&gt;
host1, /var/log*&lt;BR /&gt;
host2, /var/log*&lt;/P&gt;

&lt;P&gt;I've done your search:&lt;/P&gt;

&lt;P&gt;| tstats count as Counts where index=[my index] source="/var/log*" by host&lt;BR /&gt;
| inputlookup append=t May_Linux_Hosts.csv&lt;BR /&gt;
| rex mode=sed field=source "s/\/\w+/\/*/3"&lt;BR /&gt;
| stats values(Counts) as count by source host&lt;BR /&gt;
| fillnull count&lt;BR /&gt;
| where count=0&lt;/P&gt;

&lt;P&gt;And the output I get is:&lt;/P&gt;

&lt;P&gt;source, host, count&lt;BR /&gt;
/var/log/&lt;EM&gt;, host1,0&lt;BR /&gt;
/var/log/&lt;/EM&gt;, host2,0&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;/P&gt;

&lt;P&gt;So it's like it's not treating the * as a wildcard.  Any idea what I'm doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:24:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496911#M140309</guid>
      <dc:creator>SplunkLunk</dc:creator>
      <dc:date>2020-09-30T05:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: How Report Any Host That Hasn't Had an Event From Source="/var*" in "X" Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496912#M140310</link>
      <description>&lt;P&gt;your comment: &lt;CODE&gt;/var/log/*&lt;/CODE&gt;  now: &lt;CODE&gt;var/log*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex mode=sed field=source "s/\/\w+/\/*/3"&lt;/CODE&gt;&lt;BR /&gt;
→ &lt;CODE&gt;| rex mode=sed field=source "s/(\/var\/log).*/\1*/"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;We use regular expressions, so even the slightest difference won't work.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 21:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496912#M140310</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-13T21:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: How Report Any Host That Hasn't Had an Event From Source="/var*" in "X" Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496913#M140311</link>
      <description>&lt;P&gt;Thanks for the help. Still producing same output with the following search. I guess I don't know enough about regex to troubleshoot. I was even going to regex101.com to test without any luck:&lt;/P&gt;

&lt;P&gt;| tstats count as Counts where index=ahc_os source="var/log*" by host&lt;BR /&gt;
| inputlookup append=t May_Linux_Hosts.csv&lt;BR /&gt;
| rex mode=sed field=source "s/(\/var\/log).&lt;EM&gt;/\1&lt;/EM&gt;/"&lt;BR /&gt;
| stats values(Counts) as count by source host&lt;BR /&gt;
| fillnull count&lt;BR /&gt;
| where count=0&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:24:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496913#M140311</guid>
      <dc:creator>SplunkLunk</dc:creator>
      <dc:date>2020-09-30T05:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: How Report Any Host That Hasn't Had an Event From Source="/var*" in "X" Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496914#M140312</link>
      <description>&lt;P&gt;It jacked the formatting of the rex line up. I cut and paste exactly like you showed, but it doesn't look that way in my response.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 03:24:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496914#M140312</guid>
      <dc:creator>SplunkLunk</dc:creator>
      <dc:date>2020-05-14T03:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How Report Any Host That Hasn't Had an Event From Source="/var*" in "X" Minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496915#M140313</link>
      <description>&lt;P&gt;check your &lt;CODE&gt;source&lt;/CODE&gt; value after &lt;CODE&gt;rex&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 05:07:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Report-Any-Host-That-Hasn-t-Had-an-Event-From-Source-quot/m-p/496915#M140313</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-14T05:07:41Z</dc:date>
    </item>
  </channel>
</rss>

