<?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 do I edit my transaction search to only return on unique time result? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182562#M52606</link>
    <description>&lt;P&gt;I think this is what I call "Columbus egg"....&lt;/P&gt;

&lt;P&gt;THANKYOU! :DDD&lt;/P&gt;

&lt;P&gt;index=pcindex sourcetype=parlayx | transaction corr | search "lvl=ERROR" | table _time, SMS_MSISDN, corr&lt;/P&gt;

&lt;P&gt;Works Just Perfect &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Thankyou so much!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 20:26:43 GMT</pubDate>
    <dc:creator>mikylace</dc:creator>
    <dc:date>2020-09-28T20:26:43Z</dc:date>
    <item>
      <title>How do I edit my transaction search to only return on unique time result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182553#M52597</link>
      <description>&lt;P&gt;I'm trying to adjust the following search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pcindex sourcetype=parlayx | transaction corr | search "lvl=ERROR" | table SMS_MSISDN,corr,time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I use the &lt;CODE&gt;transaction&lt;/CODE&gt; command in order to obtain one single meta-trace with common fields I'm interested in. Then, I filter only for the erroneous ones, and finally, showing results in a "table" format (with phone number, correlatorID, time).&lt;BR /&gt;
The problem is that the meta-field that the &lt;CODE&gt;transaction&lt;/CODE&gt; command creates contains more than one "time" (one for every trace).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;57300xxxxxxx    09c3d697-d1d1-479c-bfef-839f874460f0     2015-06-30T03:47:10.618
                                                         2015-06-30T03:47:10.620
                                                         2015-06-30T03:47:10.621
                                                         2015-06-30T03:47:40.621
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I get only one time result, or an average of them at least?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 11:00:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182553#M52597</guid>
      <dc:creator>mikylace</dc:creator>
      <dc:date>2015-06-30T11:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my transaction search to only return on unique time result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182554#M52598</link>
      <description>&lt;P&gt;Hello! try this to get the last &lt;STRONG&gt;time&lt;/STRONG&gt; value :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pcindex sourcetype=parlayx| transaction corr | search "lvl=ERROR"|stats values(SMS_MSISDN) values(corr) first(time)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also try other functions, &lt;STRONG&gt;last()&lt;/STRONG&gt;, &lt;STRONG&gt;max()&lt;/STRONG&gt;, ...&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 11:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182554#M52598</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-30T11:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my transaction search to only return on unique time result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182555#M52599</link>
      <description>&lt;P&gt;unfortunately this doesn't works &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;it returns a different number of msisdn, more correlatorID than phonenumbers, and just one time (the first one)...&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 11:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182555#M52599</guid>
      <dc:creator>mikylace</dc:creator>
      <dc:date>2015-06-30T11:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my transaction search to only return on unique time result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182556#M52600</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;
 try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pcindex sourcetype=parlayx | transaction corr | search "lvl=ERROR" |dedup SMS_MSISDN| table SMS_MSISDN,corr,time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jun 2015 11:50:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182556#M52600</guid>
      <dc:creator>NOUMSSI</dc:creator>
      <dc:date>2015-06-30T11:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my transaction search to only return on unique time result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182557#M52601</link>
      <description>&lt;P&gt;True. try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=pcindex sourcetype=parlayx|eventstats max(time) as time| transaction corr | search "lvl=ERROR"|table SMS_MSISDN corr time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope, it may help&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182557#M52601</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-30T12:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my transaction search to only return on unique time result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182558#M52602</link>
      <description>&lt;P&gt;thankyou, unfortunately there are not msisdn duplicated, so the result is the same as before... Nor the time is duplicated, all of them are different (by seconds or milliseconds, but different).&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 13:00:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182558#M52602</guid>
      <dc:creator>mikylace</dc:creator>
      <dc:date>2015-06-30T13:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my transaction search to only return on unique time result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182559#M52603</link>
      <description>&lt;P&gt;thankyou a lot, time is shown correctly but is always the same for all phonenumbers, like this:&lt;/P&gt;

&lt;P&gt;573155737677    15ab891d-b075-4894-a2fa-4dcefc93ab77    2015-06-30T15:00:40.940&lt;BR /&gt;
573157464749    3d17e720-6810-47be-b94f-0b66a4c97081    2015-06-30T15:00:40.940&lt;BR /&gt;
573213437139    29245338-6763-4969-bbb2-53972bf6e004    2015-06-30T15:00:40.940&lt;BR /&gt;
573008181388    09c3d697-d1d1-479c-bfef-839f874460f0            2015-06-30T15:00:40.940&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 13:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182559#M52603</guid>
      <dc:creator>mikylace</dc:creator>
      <dc:date>2015-06-30T13:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my transaction search to only return on unique time result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182560#M52604</link>
      <description>&lt;P&gt;Yes! Because i have used the &lt;STRONG&gt;max()&lt;/STRONG&gt; command, means, &lt;CODE&gt;2015-06-30T15:00:40.940&lt;/CODE&gt; is the max time.&lt;BR /&gt;
But you can also use a subsearch to get the &lt;STRONG&gt;top&lt;/STRONG&gt; time, something like this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=pcindex sourcetype=parlayx [search index=pcindex sourcetype=parlayx|top 1 time|table time]|transaction corr | search "lvl=ERROR"|table SMS_MSISDN corr time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jun 2015 13:44:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182560#M52604</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-30T13:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my transaction search to only return on unique time result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182561#M52605</link>
      <description>&lt;P&gt;In your search when you list "time" at the end in your table is that a field &lt;EM&gt;IN&lt;/EM&gt; your data or are you talking about the "_time" field Splunk uses to list the time of the event. For the transaction command _time will list the first event of any events that are combined.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2015 14:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182561#M52605</guid>
      <dc:creator>Runals</dc:creator>
      <dc:date>2015-06-30T14:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my transaction search to only return on unique time result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182562#M52606</link>
      <description>&lt;P&gt;I think this is what I call "Columbus egg"....&lt;/P&gt;

&lt;P&gt;THANKYOU! :DDD&lt;/P&gt;

&lt;P&gt;index=pcindex sourcetype=parlayx | transaction corr | search "lvl=ERROR" | table _time, SMS_MSISDN, corr&lt;/P&gt;

&lt;P&gt;Works Just Perfect &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Thankyou so much!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182562#M52606</guid>
      <dc:creator>mikylace</dc:creator>
      <dc:date>2020-09-28T20:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my transaction search to only return on unique time result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182563#M52607</link>
      <description>&lt;P&gt;Glad that worked. If you haven't already seen it the transaction command also will calculate the duration between the first and last event in the transaction and put it into a field called duration. This is useful for figuring out long something took between start and end as well as being able to calculate the end time ie - | eval end_time = _time + duration | convert ctime(end_time)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:25:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-edit-my-transaction-search-to-only-return-on-unique/m-p/182563#M52607</guid>
      <dc:creator>Runals</dc:creator>
      <dc:date>2020-09-28T20:25:28Z</dc:date>
    </item>
  </channel>
</rss>

