<?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 to check application running status hosted in Linux server using application log in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-application-running-status-hosted-in-Linux-server/m-p/504745#M140965</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/2326"&gt;@dmaislin_splunk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Can someone please help.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2020 07:17:25 GMT</pubDate>
    <dc:creator>mnarmada</dc:creator>
    <dc:date>2020-06-17T07:17:25Z</dc:date>
    <item>
      <title>How to check application running status hosted in Linux server using application log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-application-running-status-hosted-in-Linux-server/m-p/504448#M140800</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;Here is my requirement:&lt;/P&gt;
&lt;P&gt;I have to check the application running status, which is installed in Linux server.&amp;nbsp; For this, I have a log generated by the application, which might not contain the continuous-time intervals. The log will get updated when the user is using the app. In the log, I have 3 high priority exceptions:&amp;nbsp;TransactionRolledbackException,&amp;nbsp;WIMSystemException,&amp;nbsp;ConnectionWaitTimeoutException. When any of these exceptions occurred in the log, the status should be "DOWN". If any other exceptions occur, then the status should be "WARNING, and if no exception, it should show "OK". Also once the high priority exception occurs, we will notify the users by email alert. After the email alert, it would be cleared then the next events will generate. once the next event generates and does not contain any high priority exceptions, then the status should be shown in the dashboard as "OK" and low priority exceptions, warning. And if the latest event contains exception again, then "DOWN".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Noe: when the application is down in real time, the log will not generate.&lt;/P&gt;
&lt;P&gt;Here are my sample codes but not satisfied with the results:&lt;/P&gt;
&lt;P&gt;1.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=myIndex sourcetype=mySourcetpe 
| stats count as Total earliest(_time) as start_time latest(_time) as latest_time earliest(_raw) as Earliest_Event latest(_raw) as Latest_Event by _time
| eval stop=strptime(stop, "%m/%d/%Y")
| eval Earliest_Count= Total - 1
| eval Latest_Count= Total + 1
| eval status=case(((Latest_count &amp;gt; Total) AND match(_raw, "TransactionRolledbackException")), "Down",((Latest_count &amp;gt; Total) AND match(_raw, "WIMSystemException")), "Down",((Latest_count &amp;gt; Total) AND match(_raw, "ConnectionWaitTimeoutException")), "Down",((Latest_count &amp;gt; Total) AND match(_raw, "\w+Exception")), "Warning", 1!=2, "OK")
| stats count by status&lt;/LI-CODE&gt;
&lt;P&gt;2.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=myIndex sourcetype=myscourcetype
| eval status=case( match(_raw, "TransactionRolledbackException"), "Down", match(_raw, "WIMSystemException"), "Down", match(_raw, "ConnectionWaitTimeoutException"), "Down", match(_raw, "\w+Exception"), "WARNING" , 1!=2, "OK")
| timechart count by status&lt;/LI-CODE&gt;
&lt;P&gt;Any Help or suggestion would be really appreciated!! Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 20:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-application-running-status-hosted-in-Linux-server/m-p/504448#M140800</guid>
      <dc:creator>mnarmada</dc:creator>
      <dc:date>2020-06-15T20:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to check application running status hosted in Linux server using application log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-application-running-status-hosted-in-Linux-server/m-p/504745#M140965</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/2326"&gt;@dmaislin_splunk&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Can someone please help.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 07:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-application-running-status-hosted-in-Linux-server/m-p/504745#M140965</guid>
      <dc:creator>mnarmada</dc:creator>
      <dc:date>2020-06-17T07:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to check application running status hosted in Linux server using application log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-application-running-status-hosted-in-Linux-server/m-p/504843#M140993</link>
      <description>&lt;P&gt;Can you upload a data sample?&amp;nbsp; Please remove or substitute any sensitive data before you provide this information.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 17:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-application-running-status-hosted-in-Linux-server/m-p/504843#M140993</guid>
      <dc:creator>dmaislin_splunk</dc:creator>
      <dc:date>2020-06-17T17:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to check application running status hosted in Linux server using application log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-application-running-status-hosted-in-Linux-server/m-p/504911#M141017</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Below is the piece of data. Let me know if anything else required.&lt;/P&gt;&lt;PRE&gt;[3/14/18 0:12:41:610 EDT] 00000039 SystemErr     R  at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
46      3/14/18
12:12:41.610 AM 
[3/14/18 0:12:41:610 EDT] 00000039 SystemErr     R  at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
47      3/14/18
12:12:41.610 AM 
[3/14/18 0:12:41:610 EDT] 00000039 SystemErr     R  at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1662)
48      3/14/18
1:00:02.465 AM  
[3/14/18 1:00:02:465 EDT] 0000006b SystemErr     R com.ibm.wcc.service.intf.ProcessingException&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 07:44:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-application-running-status-hosted-in-Linux-server/m-p/504911#M141017</guid>
      <dc:creator>mnarmada</dc:creator>
      <dc:date>2020-06-18T07:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to check application running status hosted in Linux server using application log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-application-running-status-hosted-in-Linux-server/m-p/505148#M141158</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have tried like below and is working for me. Thanks!!&lt;/P&gt;&lt;P&gt;Still I&amp;nbsp; accept any better solution than this.. haha..&lt;/P&gt;&lt;P&gt;index=myindex&amp;nbsp; sourcetype=mysourcetype&lt;BR /&gt;| stats latest(_raw) as latest_event&lt;BR /&gt;| eval status=case(match(latest_event, "TransactionRolledbackException"), "Down", match(latest_event, "WIMSystemException"), "latest_event", match(_raw, "ConnectionWaitTimeoutException"), "Down", match(latest_event, "\w+Exception"), "Warning", 1!=2, "OK")&lt;BR /&gt;| stats count by status&lt;BR /&gt;| eval status=case(status="OK", 0, status="Warning", 5, status="Down", 10)&lt;BR /&gt;| rangemap field=status low=0-4 elevated=4-6 default=severe&lt;BR /&gt;| eval status = replace (status,"0","OK")&lt;BR /&gt;| eval status = replace (status,"5","WARNING")&lt;BR /&gt;| eval status = replace (status,"10","DOWN")&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 10:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-application-running-status-hosted-in-Linux-server/m-p/505148#M141158</guid>
      <dc:creator>mnarmada</dc:creator>
      <dc:date>2020-06-19T10:02:29Z</dc:date>
    </item>
  </channel>
</rss>

