<?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 query to extract events with distict ids in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/query-to-extract-events-with-distict-ids/m-p/112218#M1657</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;i am trying to get all the request messages that passed through our application for a particular time frame . when i am searching using &lt;BR /&gt;
&lt;STRONG&gt;sourcetype="*Leg  .log" tid  | eval status = if(error == 200, "OK", "Error")&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;getting below events with repeatition of transaction ids . How to get distict tid instead of repeating tids ....&lt;BR /&gt;
 please help me on this , i am a newbea to this ...&lt;BR /&gt;
Time Event 1 1/13/14 &lt;BR /&gt;
11:20:54.000 PM &lt;BR /&gt;
Mon Jan 13 2014 23:20:54  tid(7677232): certificate validation succeeded &lt;BR /&gt;
date_month = january host = dev source = /opt/store/off_device_logging/Leg.log. &lt;BR /&gt;
sourcetype = Leg .log &lt;BR /&gt;
2 1/13/14 &lt;BR /&gt;
11:20:31.000 PM &lt;BR /&gt;
Mon Jan 13 2014 23:20:31 &lt;STRONG&gt;tid(34223):&lt;/STRONG&gt; Updating existing wsdl &lt;BR /&gt;
date_month = january host = dev &lt;BR /&gt;
source = /opt/store/off_device_logging/Leg .log sourcetype = Leg .log &lt;BR /&gt;
3 1/13/14 &lt;BR /&gt;
11:20:31.000 PM &lt;BR /&gt;
Mon Jan 13 2014 23:20 : &lt;STRONG&gt;tid(34223&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; wsdl Compilation Request &lt;BR /&gt;
date_month = january  host = dev source = /opt/store/off_device_logging/Leg .log &lt;BR /&gt;
sourcetype = Leg .log &lt;BR /&gt;
4 1/13/14 &lt;BR /&gt;
11:20:31.000 PM &lt;BR /&gt;
Mon Jan 13 2014 23:20:31 : &lt;STRONG&gt;tid(8006898):&lt;/STRONG&gt; HTTP response code 200 &lt;BR /&gt;
date_month = january  host =  dev  source = /opt/store/off_device_logging/Leg .log &lt;BR /&gt;
 sourcetype = Leg  .log &lt;BR /&gt;
5 1/13/14 &lt;BR /&gt;
11:20:31.000 PM &lt;BR /&gt;
Mon Jan 13 2014 23:20:31  &lt;STRONG&gt;tid(8006898):&lt;/STRONG&gt; certificate validation succeeded &lt;BR /&gt;
date_month = january  host =  dev &lt;BR /&gt;
source = /opt/store/off_device_logging/Leg .log sourcetype = Leg  .log &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:38:56 GMT</pubDate>
    <dc:creator>wye054</dc:creator>
    <dc:date>2020-09-28T15:38:56Z</dc:date>
    <item>
      <title>query to extract events with distict ids</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/query-to-extract-events-with-distict-ids/m-p/112218#M1657</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;i am trying to get all the request messages that passed through our application for a particular time frame . when i am searching using &lt;BR /&gt;
&lt;STRONG&gt;sourcetype="*Leg  .log" tid  | eval status = if(error == 200, "OK", "Error")&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;getting below events with repeatition of transaction ids . How to get distict tid instead of repeating tids ....&lt;BR /&gt;
 please help me on this , i am a newbea to this ...&lt;BR /&gt;
Time Event 1 1/13/14 &lt;BR /&gt;
11:20:54.000 PM &lt;BR /&gt;
Mon Jan 13 2014 23:20:54  tid(7677232): certificate validation succeeded &lt;BR /&gt;
date_month = january host = dev source = /opt/store/off_device_logging/Leg.log. &lt;BR /&gt;
sourcetype = Leg .log &lt;BR /&gt;
2 1/13/14 &lt;BR /&gt;
11:20:31.000 PM &lt;BR /&gt;
Mon Jan 13 2014 23:20:31 &lt;STRONG&gt;tid(34223):&lt;/STRONG&gt; Updating existing wsdl &lt;BR /&gt;
date_month = january host = dev &lt;BR /&gt;
source = /opt/store/off_device_logging/Leg .log sourcetype = Leg .log &lt;BR /&gt;
3 1/13/14 &lt;BR /&gt;
11:20:31.000 PM &lt;BR /&gt;
Mon Jan 13 2014 23:20 : &lt;STRONG&gt;tid(34223&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; wsdl Compilation Request &lt;BR /&gt;
date_month = january  host = dev source = /opt/store/off_device_logging/Leg .log &lt;BR /&gt;
sourcetype = Leg .log &lt;BR /&gt;
4 1/13/14 &lt;BR /&gt;
11:20:31.000 PM &lt;BR /&gt;
Mon Jan 13 2014 23:20:31 : &lt;STRONG&gt;tid(8006898):&lt;/STRONG&gt; HTTP response code 200 &lt;BR /&gt;
date_month = january  host =  dev  source = /opt/store/off_device_logging/Leg .log &lt;BR /&gt;
 sourcetype = Leg  .log &lt;BR /&gt;
5 1/13/14 &lt;BR /&gt;
11:20:31.000 PM &lt;BR /&gt;
Mon Jan 13 2014 23:20:31  &lt;STRONG&gt;tid(8006898):&lt;/STRONG&gt; certificate validation succeeded &lt;BR /&gt;
date_month = january  host =  dev &lt;BR /&gt;
source = /opt/store/off_device_logging/Leg .log sourcetype = Leg  .log &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:38:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/query-to-extract-events-with-distict-ids/m-p/112218#M1657</guid>
      <dc:creator>wye054</dc:creator>
      <dc:date>2020-09-28T15:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: query to extract events with distict ids</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/query-to-extract-events-with-distict-ids/m-p/112219#M1658</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
 I would assume all the events are different, so we can have the tid's first then you can have your calculations&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="*Leg  .log" tid |rex field=_raw "\stid\((?&amp;lt;TID&amp;gt;\d+)"|dedup TID|eval status = if(error == 200, "OK", "Error") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Give it a try. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 12:25:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/query-to-extract-events-with-distict-ids/m-p/112219#M1658</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-01-14T12:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: query to extract events with distict ids</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/query-to-extract-events-with-distict-ids/m-p/112220#M1659</link>
      <description>&lt;P&gt;If the field tid or transactionId is already extracted use following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="*Leg .log" tid | eval status = if(error == 200, "OK", "Error") | dedup tid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the tid field is not extracted, use following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="*Leg .log" tid | eval status = if(error == 200, "OK", "Error") | rex "\((?&amp;lt;tid&amp;gt;.*)\)" | dedup tid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can save the regex to make it search time field extraction.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 12:26:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/query-to-extract-events-with-distict-ids/m-p/112220#M1659</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-01-14T12:26:50Z</dc:date>
    </item>
  </channel>
</rss>

