<?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: Transaction without endswith in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transaction-without-endswith/m-p/681828#M232985</link>
    <description>&lt;P&gt;Have a look at the transaction command option e.g. keeporphans and keepevicted to see if they will give what you need&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2024 09:27:50 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-03-25T09:27:50Z</dc:date>
    <item>
      <title>Transaction without endswith</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-without-endswith/m-p/681821#M232983</link>
      <description>&lt;P&gt;Hi! Filtering data from an amount of hosts looking for downtime durations. I get a "forensic" use view with this search string:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=myindex host=* | rex "to state\s(?&amp;lt;mystate&amp;gt;.*)" | search mystate="DOWN " OR mystate="UP | transaction by host startswith=mystate="DOWN " endswith=mystate="*UP " | table host,duration,_time | sort by duration | reverse&lt;/LI-CODE&gt;
&lt;P&gt;...where I REX for the specific patterns of "to state " (host transition into another state, in this example "DOWN" or "UP"), I had do do another "search" to get only the specific ones as there are more than DOWN/UP states (due to my anonymization of the data). I then can retrieve the duration between transitions using "duration" and sorting it as I please.&lt;BR /&gt;&lt;BR /&gt;My question - if I'd like to look into ongoing, "at-this-moment-active" hosts in state "DOWN" ie. replace "endswith" with a nominal time value ("NOW"). Where there yet has not been any "endswith" match, just counting the duration from "startswith" to the present moment - any tips on how I can formulate that properly?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 17:53:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-without-endswith/m-p/681821#M232983</guid>
      <dc:creator>martinhelgegren</dc:creator>
      <dc:date>2024-03-26T17:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction without endswith</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-without-endswith/m-p/681828#M232985</link>
      <description>&lt;P&gt;Have a look at the transaction command option e.g. keeporphans and keepevicted to see if they will give what you need&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 09:27:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-without-endswith/m-p/681828#M232985</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-25T09:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction without endswith</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-without-endswith/m-p/682034#M233038</link>
      <description>&lt;P&gt;Unfortunately no, tested them both - separately with each boolean value&amp;nbsp; and together with both true/true, true/false, false/true and false/false. Does not seem to provide the matching needed.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 17:35:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-without-endswith/m-p/682034#M233038</guid>
      <dc:creator>martinhelgegren</dc:creator>
      <dc:date>2024-03-26T17:35:55Z</dc:date>
    </item>
  </channel>
</rss>

