<?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 how to check for alternate criteria for my description in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-check-for-alternate-criteria-for-my-description/m-p/507460#M33740</link>
    <description>&lt;P&gt;Hi my code is as follows:&lt;/P&gt;&lt;P&gt;DESCRIPTION="* sump *" OR (DESCRIPTION="* ejector pump *" AND DESCRIPTION="* run/stop *") (VALUE="RUN" OR VALUE="STOP" OR VALUE="TRIP") ASSET_NAME="*TAM/*" | eval TIMEONLY =strptime(CREATEDATETIME ,"%d/%m/%Y %I:%M:%S %p") | eval _time=TIMEONLY&lt;BR /&gt;| rex field=VALUE mode=sed "s/TRIP/STOP/g" | rex field=DESCRIPTION mode=sed "s/Trip/Run\/Stop/g" | rex field=ASSET_NAME "^(?&amp;lt;LOCATION&amp;gt;[^/]+)"&lt;BR /&gt;| streamstats count(eval(VALUE="STOP")) AS TransactionID BY ASSET_NAME DESCRIPTION&lt;BR /&gt;| stats range(_time) AS duration list(VALUE) AS VALUES min(_time) AS _time BY TransactionID ASSET_NAME DESCRIPTION&lt;BR /&gt;| eval newfield=if(duration&amp;gt;=1800,1,null)&lt;BR /&gt;| sort by ASSET_NAME&lt;/P&gt;&lt;P&gt;part of result i get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="problem 1.JPG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9486i7C72810E5794818C/image-size/large?v=v2&amp;amp;px=999" role="button" title="problem 1.JPG" alt="problem 1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i would like to ask if there is a code which i can write so that under my description it can check that my Pumps are always working in alternating example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;STN DR Sump Pump 01 Run/Stop Status: DR Pump RM 01&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;run and stop follow by&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;STN DR Sump Pump 02 Run/Stop Status: DR Pump RM 01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;STN DR Sump Pump 01 Run/Stop Status: DR Pump RM 01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if there happen that the run/stop did not alternate it will have&amp;nbsp;an alert or flag out abnormally&amp;nbsp;or something&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 05:29:50 GMT</pubDate>
    <dc:creator>chookp</dc:creator>
    <dc:date>2020-07-06T05:29:50Z</dc:date>
    <item>
      <title>how to check for alternate criteria for my description</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-check-for-alternate-criteria-for-my-description/m-p/507460#M33740</link>
      <description>&lt;P&gt;Hi my code is as follows:&lt;/P&gt;&lt;P&gt;DESCRIPTION="* sump *" OR (DESCRIPTION="* ejector pump *" AND DESCRIPTION="* run/stop *") (VALUE="RUN" OR VALUE="STOP" OR VALUE="TRIP") ASSET_NAME="*TAM/*" | eval TIMEONLY =strptime(CREATEDATETIME ,"%d/%m/%Y %I:%M:%S %p") | eval _time=TIMEONLY&lt;BR /&gt;| rex field=VALUE mode=sed "s/TRIP/STOP/g" | rex field=DESCRIPTION mode=sed "s/Trip/Run\/Stop/g" | rex field=ASSET_NAME "^(?&amp;lt;LOCATION&amp;gt;[^/]+)"&lt;BR /&gt;| streamstats count(eval(VALUE="STOP")) AS TransactionID BY ASSET_NAME DESCRIPTION&lt;BR /&gt;| stats range(_time) AS duration list(VALUE) AS VALUES min(_time) AS _time BY TransactionID ASSET_NAME DESCRIPTION&lt;BR /&gt;| eval newfield=if(duration&amp;gt;=1800,1,null)&lt;BR /&gt;| sort by ASSET_NAME&lt;/P&gt;&lt;P&gt;part of result i get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="problem 1.JPG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9486i7C72810E5794818C/image-size/large?v=v2&amp;amp;px=999" role="button" title="problem 1.JPG" alt="problem 1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i would like to ask if there is a code which i can write so that under my description it can check that my Pumps are always working in alternating example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;STN DR Sump Pump 01 Run/Stop Status: DR Pump RM 01&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;run and stop follow by&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;STN DR Sump Pump 02 Run/Stop Status: DR Pump RM 01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;STN DR Sump Pump 01 Run/Stop Status: DR Pump RM 01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if there happen that the run/stop did not alternate it will have&amp;nbsp;an alert or flag out abnormally&amp;nbsp;or something&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 05:29:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-check-for-alternate-criteria-for-my-description/m-p/507460#M33740</guid>
      <dc:creator>chookp</dc:creator>
      <dc:date>2020-07-06T05:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to check for alternate criteria for my description</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-check-for-alternate-criteria-for-my-description/m-p/507462#M33741</link>
      <description>&lt;P&gt;i am also finding a way to remove the result which my duration are 0 and values only stop&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 05:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-check-for-alternate-criteria-for-my-description/m-p/507462#M33741</guid>
      <dc:creator>chookp</dc:creator>
      <dc:date>2020-07-06T05:31:16Z</dc:date>
    </item>
  </channel>
</rss>

