<?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 generate a search for my sample data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-for-my-sample-data/m-p/280893#M84781</link>
    <description>&lt;P&gt;Give this a try (assuming CorrelationID is the primary key. If there are additional fields that differentiate uniq transaction, add them to stats)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | fields _time CorrelationID DCN TransactionTimestamp GroupNumber ServiceLineCount SectionNumber CorporateEntityCode ClaimType VendorName VendorCode TransactionCode OutCome Message_Text UtilizationAmount | eval ReqTime=if(TransactionCode="REQ",_time,null()) | eval AckTime=if(TransactionCode="Ack",_time,null()) | eval RespTime=if(TransactionCode="Response",_time,null()) | stats values(*) as * by CorrelationID | eval DurationReq_Ack=AckTime-ReqTime | eval DurationAck_Resp = RespTime-AckTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Feb 2017 16:57:21 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-02-07T16:57:21Z</dc:date>
    <item>
      <title>How to generate a search for my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-for-my-sample-data/m-p/280892#M84780</link>
      <description>&lt;P&gt;i have logs like this for each req.....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-11-09 12:57:18,855  CorrelationID=2469bae9-fe14-4e67-b345-95d652f4a868, DCN =02016047501V1370X, TransactionTimestamp =1478717835696 , GroupNumber =000142003, ServiceLinecount=xx,  SectionNumber =0001, CorporateEntityCode =TX1, ClaimType=0, VendorName =XXX, VendorCode=xxx, TransactionCode=REQ 

2016-11-09 12:57:18,855  CorrelationID=2469bae9-fe14-4e67-b345-95d652f4a868, DCN =02016047501V1370X, TransactionTimestamp =1478717835696, GroupNumber =000142003, ServiceLineCount=xxx,  SectionNumber =0001, CorporateEntityCode =TX1, ClaimType=0, VendorName =XXX, VendorCode=xxx, TransactionCode=Ack, OutCome= Success , Message text=xxxx

2016-11-09 12:57:18,855 CorrelationID=2469bae9-fe14-4e67-b345-95d652f4a868, DCN =02016047501V1370X, TransactionTimestamp =1478717835696, GroupNumber =000142003, ServiceLineCount=xxx,  SectionNumber =0001, CorporateEntityCode =TX1, ClaimType=0, VendorName =XXX, VendorCode=xx, TransactionCode=Response ,UtilizationAmount=xxx.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In each message up to vendor code everything is similar ..&lt;BR /&gt;
 i need a table with all the details information along with how much time it has taken between req,ACK  and ACK,RSP in single table...so that later on i want to build the summary  index with those search.....&lt;BR /&gt;
is anyone help in this could appreciate that...!! thanks in advance...&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-for-my-sample-data/m-p/280892#M84780</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-02-07T16:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search for my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-for-my-sample-data/m-p/280893#M84781</link>
      <description>&lt;P&gt;Give this a try (assuming CorrelationID is the primary key. If there are additional fields that differentiate uniq transaction, add them to stats)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | fields _time CorrelationID DCN TransactionTimestamp GroupNumber ServiceLineCount SectionNumber CorporateEntityCode ClaimType VendorName VendorCode TransactionCode OutCome Message_Text UtilizationAmount | eval ReqTime=if(TransactionCode="REQ",_time,null()) | eval AckTime=if(TransactionCode="Ack",_time,null()) | eval RespTime=if(TransactionCode="Response",_time,null()) | stats values(*) as * by CorrelationID | eval DurationReq_Ack=AckTime-ReqTime | eval DurationAck_Resp = RespTime-AckTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-for-my-sample-data/m-p/280893#M84781</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-07T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search for my sample data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-for-my-sample-data/m-p/280894#M84782</link>
      <description>&lt;P&gt;thanks...it's working...can i make it as a summary report....&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 19:03:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-for-my-sample-data/m-p/280894#M84782</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-02-07T19:03:37Z</dc:date>
    </item>
  </channel>
</rss>

