<?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 search for all events for a transaction if there is no unique ID? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200626#M58177</link>
    <description>&lt;P&gt;the log source is also same bro..&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2017 22:20:47 GMT</pubDate>
    <dc:creator>prashanthberam</dc:creator>
    <dc:date>2017-01-11T22:20:47Z</dc:date>
    <item>
      <title>How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200615#M58166</link>
      <description>&lt;P&gt;Hi everybody ...&lt;BR /&gt;
i have these kind of logs in my environment. every transaction has these 4 log messages but there is no unique id for every transaction. simply it's generating this kind of message, but there is no information to correlate this information for 1 particular transaction. but i need to find the INFORMATION whatever in between inbound and outbound. can anyone help me in that?&lt;/P&gt;

&lt;P&gt;Thanks in advance.![alt text][1]&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 21:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200615#M58166</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2016-12-15T21:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200616#M58167</link>
      <description>&lt;P&gt;Can there be more that one transactions going one at the same time?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 21:46:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200616#M58167</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-12-15T21:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200617#M58168</link>
      <description>&lt;P&gt;No for each transaction their is diff of some milliseconds.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 21:55:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200617#M58168</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2016-12-15T21:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200618#M58169</link>
      <description>&lt;P&gt;Give this a try. This should group relevant transaction events together. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search | eval transfield=if(searchmatch("Outbound Message"),1,0) | accum transfield | transaction transfield
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you're looking for specific output, please provide a sample/details of that.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 22:01:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200618#M58169</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-12-15T22:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200619#M58170</link>
      <description>&lt;P&gt;index=ccsp_test_was source="/usr/WASLogs700/cdhpws_uat*_&lt;EM&gt;/cdhpws/logs/application.log" "getProcedureDetailBlueChip" OR "getProcedureDetailBlueChipResponse" &lt;BR /&gt;
AND "Outbound Message" OR "Inbound Message" OR "getProcedureDetailBlueChip response time returning procedure details" OR "memZipCode assigned to zipCode" &lt;BR /&gt;
OR "provZipCode assigned to zipCode" OR  "bnftAgrmtNbr" |rex "(?Inbound|Outbound)" |eval transfield=if(searchmatch("Outbound Message"),1,0) | accum transfield | transaction transfield | rex "ID:(?.&lt;/EM&gt;)" &lt;BR /&gt;
|rex "(?m)(?.&lt;EM&gt;)"|rex "(?m)(?.&lt;/EM&gt;)"|rex "(?m)(?.&lt;EM&gt;)"|rex "(?.&lt;/EM&gt;)" |rex "(?.&lt;EM&gt;)"|rex "(?.&lt;/EM&gt;)" | rex "(?.&lt;EM&gt;)" | rex "(?.&lt;/EM&gt;)" |rex "(?.&lt;EM&gt;)" |rex "(?.&lt;/EM&gt;)"|rex "(?.&lt;EM&gt;)"| rex "(?.&lt;/EM&gt;)"|rex "(?.&lt;EM&gt;)" |rex "provZipCode assigned to zipCode:(?.&lt;/EM&gt;)"| rex "memZipCode assigned to zipCode:(?.*)"|stats max(_time) as startTime,min(_time) as endTime,values(info) as Info,values(ResponseTime) as responseTime,values(StatusCode) as StatusCode,values(message) as StatusMessage,values(CorpEntCd) as corpEntCd,values(costlvlpctl) as Costlvlpctl,values(CptCode) as cptCode,values(GroupNbr) as GroupNbr,values(MemZipCode) as memZipCode,values(procdchrgamt) as ProcChrgamt,values(ProvZipCode) as ProvZipCode,values(SectionNbr) as SectionNbr,values(ServiceDate) as ServiceDate,values(tretcatcd) as TretCatCd,values(tretcatname) as TretCatName,values(bnftAgrmtNbr) as bnftAgrmtNbr,values(acctNbr) as acctNbr,values(provassignZip) as provassignZip,values(memzipassignzip) as memzipassignzip by id,source&lt;BR /&gt;
|eval responseTime=startTime-endTime |eval StartTime=strftime(startTime,"%Y-%m-%d %H:%M:%S,%3N")|eval EndTime=strftime(endTime,"%Y-%m-%d %H:%M:%S,%3N")&lt;BR /&gt;
|table id,Info,StartTime,EndTime,responseTime,StatusCode,StatusMessage,source,corpEntCd,Costlvlpctl,cptCode,GroupNbr,memZipCode,ProcChrgamt,ProvZipCode,SectionNbr,ServiceDate,TretCatCd,TretCatName,bnftAgrmtNbr,acctNbr,provassignZip,memzipassignzip&lt;/P&gt;

&lt;P&gt;could you please help me in this while  adding those above code into my search am getting results but responsetime is coming because am loosing the time for outbound message because i nedd to display the transaction starttime endtime in the final result...thanks in advance.. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:08:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200619#M58170</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2020-09-29T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200620#M58171</link>
      <description>&lt;P&gt;index=ccsp_prd_was source="/usr/WASLogs700/cdhpws_&lt;EM&gt;/cdhpws/logs/application.log" "getProcedureDetailBlueChip" OR "getProcedureDetailBlueChipResponse"  AND "Inbound Message" OR "Outbound Message" OR "getProcedureDetailBlueChip response time returning procedure details" OR "memZipCode assigned to zipCode"  OR "provZipCode assigned to zipCode" OR  "bnftAgrmtNbr"    | rex "ID:(?.&lt;/EM&gt;)"  |rex "(?Inbound|Outbound)"  | eval transfield=if(searchmatch("Outbound Message"),1,0)  | accum transfield   | transaction transfield by id.....&lt;BR /&gt;
 am using this query in the production ...Their has 1 or 2 requests not properly combined because ,,,for those requests will have first outbound message and afterwards  inbound message.......could you please tell me how can i change the query....&lt;BR /&gt;
thanks in advance....&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:26:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200620#M58171</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2020-09-29T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200621#M58172</link>
      <description>&lt;P&gt;Any specific reasons why the outbound message came before inbound?  My answers rely on the order of inbound and outbound messages and will not work if the order is changed.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 21:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200621#M58172</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-11T21:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200622#M58173</link>
      <description>&lt;P&gt;I don't Know... Even i have check the timestamp..time stamp is good ...once inbound processed then only outbound message processing ..but in the logs it has written like that..for some of the requests...&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 21:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200622#M58173</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-01-11T21:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200623#M58174</link>
      <description>&lt;P&gt;May be your need to sort the events by timestamp so that order is proper? Try adding &lt;CODE&gt;| sort 0 -_time&lt;/CODE&gt; before &lt;CODE&gt;eval transfield&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 21:58:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200623#M58174</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-11T21:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200624#M58175</link>
      <description>&lt;P&gt;sometimes simultaneously 2 requests are processing ...that's why i am getting the at a time 2 Inbound and outbound messages.... like this order&lt;BR /&gt;
outbound 28773&lt;BR /&gt;
inbound 28773&lt;BR /&gt;
outbound 28772&lt;BR /&gt;
outbound 28771&lt;BR /&gt;
inbound 28772&lt;BR /&gt;
inbound 28771&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 22:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200624#M58175</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-01-11T22:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200625#M58176</link>
      <description>&lt;P&gt;It would be really difficult to differentiate two concurrent simultaneously without a unique identifier. May be check with log source on how you can get that added. &lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 22:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200625#M58176</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-11T22:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for all events for a transaction if there is no unique ID?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200626#M58177</link>
      <description>&lt;P&gt;the log source is also same bro..&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 22:20:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-all-events-for-a-transaction-if-there-is-no/m-p/200626#M58177</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-01-11T22:20:47Z</dc:date>
    </item>
  </channel>
</rss>

