<?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: When using Transaction command startswith and endswith,if field value is same for both ,null is shown for endswith in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688561#M234736</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I need the timestamp of the 2nd event in the transaction, i.e, the stop time.&amp;nbsp; When it showed empty value, I tested getting both the values and noticed this behavior.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2024 05:56:06 GMT</pubDate>
    <dc:creator>mythili</dc:creator>
    <dc:date>2024-05-24T05:56:06Z</dc:date>
    <item>
      <title>When using Transaction command startswith and endswith,if field value is same for both ,null is shown for endswith</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688553#M234732</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I am using transaction command to group events and get stop time of a device.&amp;nbsp;&lt;BR /&gt;| transaction sys_id startswith="START" endswith="STOP"&lt;BR /&gt;| eval stop_time=strftime(mvindex(sys_time,1), "%Y-%m-%d %H:%M:%S.%2N")&lt;BR /&gt;| table sys_id stop_time&lt;BR /&gt;&lt;BR /&gt;However, when a field has same value for startswith and endswith, (for example, sys_time is same for both) then, mvindex(sys_time,1) is empty whereas&amp;nbsp;mvindex(sys_time,0) gives the value.&amp;nbsp; If the values are different, then it works fine.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any idea on this behavior and on how to work around this to get the value regardless?&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 05:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688553#M234732</guid>
      <dc:creator>mythili</dc:creator>
      <dc:date>2024-05-24T05:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: When using Transaction command startswith and endswith,if field value is same for both ,null is shown for endswith</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688555#M234733</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258299"&gt;@mythili&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;why do you need mvindex, if you want to take the first timestamp of the trandaction?&lt;/P&gt;&lt;P&gt;usually the transaction command takes as timestamp the one from the first event in the correlated events.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 05:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688555#M234733</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-24T05:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: When using Transaction command startswith and endswith,if field value is same for both ,null is shown for endswith</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688561#M234736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I need the timestamp of the 2nd event in the transaction, i.e, the stop time.&amp;nbsp; When it showed empty value, I tested getting both the values and noticed this behavior.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 05:56:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688561#M234736</guid>
      <dc:creator>mythili</dc:creator>
      <dc:date>2024-05-24T05:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: When using Transaction command startswith and endswith,if field value is same for both ,null is shown for endswith</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688565#M234737</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258299"&gt;@mythili&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you could use an eval command to have the timestamp of the second event:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval stop_time=strftime(_time+duration, "%Y-%m-%d %H:%M:%S.%2N")
| table sys_id stop_time&lt;/LI-CODE&gt;&lt;P&gt;that runs also with events with the same timestamp.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 06:02:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688565#M234737</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-24T06:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: When using Transaction command startswith and endswith,if field value is same for both ,null is shown for endswith</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688584#M234745</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks for the suggestion. This work-around works for me. But any idea regarding this behavior? Is this a known issue from Splunk?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 07:43:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688584#M234745</guid>
      <dc:creator>mythili</dc:creator>
      <dc:date>2024-05-24T07:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: When using Transaction command startswith and endswith,if field value is same for both ,null is shown for endswith</title>
      <link>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688587#M234747</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258299"&gt;@mythili&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sincerely I don't know.&lt;/P&gt;&lt;P&gt;You could open a case to Splunk Support to have an answer or to notice a possible bug.&lt;/P&gt;&lt;P&gt;let me know if I can help you more, or, please, accept one answer for the other people of Community.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 07:47:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/When-using-Transaction-command-startswith-and-endswith-if-field/m-p/688587#M234747</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-05-24T07:47:58Z</dc:date>
    </item>
  </channel>
</rss>

