<?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: Find Transaction time with same startswith log string. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Find-Transaction-time-with-same-startswith-log-string/m-p/162261#M45962</link>
    <description>&lt;P&gt;My suggestion would be to create a field called message which will store the message after "System Up -", so that it would be blank/null for 2nd event and you can use that as startswith (different in both entries).&lt;/P&gt;

&lt;P&gt;something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search | rex "System Up\s*-\s*(?&amp;lt;message&amp;gt;.*)$" | transaction startswith="System Up AND NOT message=*" endswith="System Up message=*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Jul 2014 20:23:07 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-07-29T20:23:07Z</dc:date>
    <item>
      <title>Find Transaction time with same startswith log string.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-Transaction-time-with-same-startswith-log-string/m-p/162260#M45961</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need to find the transaction time between these 2 statements which has same startswith Log strings(different endswith) and hence its ignoring the first event.&lt;/P&gt;

&lt;P&gt;2014-07-04 09:48:00-System Up - Node1 is down&lt;BR /&gt;
2014-07-04 09:43:00-System Up&lt;/P&gt;

&lt;P&gt;How could I find the transaction time between these 2 events.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 19:41:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-Transaction-time-with-same-startswith-log-string/m-p/162260#M45961</guid>
      <dc:creator>sethuk555</dc:creator>
      <dc:date>2014-07-29T19:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find Transaction time with same startswith log string.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-Transaction-time-with-same-startswith-log-string/m-p/162261#M45962</link>
      <description>&lt;P&gt;My suggestion would be to create a field called message which will store the message after "System Up -", so that it would be blank/null for 2nd event and you can use that as startswith (different in both entries).&lt;/P&gt;

&lt;P&gt;something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search | rex "System Up\s*-\s*(?&amp;lt;message&amp;gt;.*)$" | transaction startswith="System Up AND NOT message=*" endswith="System Up message=*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Jul 2014 20:23:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-Transaction-time-with-same-startswith-log-string/m-p/162261#M45962</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-29T20:23:07Z</dc:date>
    </item>
  </channel>
</rss>

