<?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 do I constantly check the log if a connection is up or not? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322309#M60066</link>
    <description>&lt;P&gt;Oopsy. Got it. But, I was getting this error: &lt;STRONG&gt;Error in 'tstats' command: This command must be the first command of a search&lt;/STRONG&gt;... So I thought, that was something. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2018 09:49:22 GMT</pubDate>
    <dc:creator>timmag</dc:creator>
    <dc:date>2018-04-06T09:49:22Z</dc:date>
    <item>
      <title>How do I constantly check the log if a connection is up or not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322304#M60061</link>
      <description>&lt;P&gt;I have a host and source. &lt;BR /&gt;
host="xyz" source="abc"&lt;/P&gt;

&lt;P&gt;They give me results every minute whether the connection is up or not. My question is how do I write a query that continuously keeps checking the connection every minute and shows up if everything is fine and shows down if there is a connection fail for greater than 5 mins (i.e. the log would contain the connection is down 5 times) &lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 08:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322304#M60061</guid>
      <dc:creator>timmag</dc:creator>
      <dc:date>2018-04-06T08:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I constantly check the log if a connection is up or not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322305#M60062</link>
      <description>&lt;P&gt;You can use &lt;CODE&gt;| metadata type=hosts&lt;/CODE&gt; and then select fields you want and apply condition.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 09:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322305#M60062</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-06T09:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I constantly check the log if a connection is up or not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322306#M60063</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Makeresults| tstats max(_indextime) as recentTime where index=* by index host source | eval age=now()-recentTime | search age&amp;gt;60
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Apr 2018 09:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322306#M60063</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2018-04-06T09:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I constantly check the log if a connection is up or not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322307#M60064</link>
      <description>&lt;P&gt;I'm not sure I understood that. What is Makeresults? &lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 09:31:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322307#M60064</guid>
      <dc:creator>timmag</dc:creator>
      <dc:date>2018-04-06T09:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I constantly check the log if a connection is up or not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322308#M60065</link>
      <description>&lt;P&gt;Make your results &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Index=* host=hostname source=sourcename| above query&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 09:42:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322308#M60065</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2018-04-06T09:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I constantly check the log if a connection is up or not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322309#M60066</link>
      <description>&lt;P&gt;Oopsy. Got it. But, I was getting this error: &lt;STRONG&gt;Error in 'tstats' command: This command must be the first command of a search&lt;/STRONG&gt;... So I thought, that was something. &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 09:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322309#M60066</guid>
      <dc:creator>timmag</dc:creator>
      <dc:date>2018-04-06T09:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I constantly check the log if a connection is up or not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322310#M60067</link>
      <description>&lt;P&gt;I still don't get it.  Even if I try using simple stats command, it returns index error&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 10:10:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322310#M60067</guid>
      <dc:creator>timmag</dc:creator>
      <dc:date>2018-04-06T10:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I constantly check the log if a connection is up or not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322311#M60068</link>
      <description>&lt;P&gt;&lt;CODE&gt;| makeresults [| tstats max(_indextime) as recentTime where index=* by index host source | eval age=now()-recentTime | search age&amp;gt;60]&lt;/CODE&gt;&lt;BR /&gt;
@timmag this sould work fine&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 10:25:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-constantly-check-the-log-if-a-connection-is-up-or-not/m-p/322311#M60068</guid>
      <dc:creator>MKowalewski</dc:creator>
      <dc:date>2018-04-06T10:25:47Z</dc:date>
    </item>
  </channel>
</rss>

