<?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: Grouping logs by tranId, date and time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Grouping-logs-by-tranId-date-and-time/m-p/701201#M237881</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249566"&gt;@msarkaus&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&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;</description>
    <pubDate>Mon, 07 Oct 2024 14:06:35 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-10-07T14:06:35Z</dc:date>
    <item>
      <title>Grouping logs by tranId, date and time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-logs-by-tranId-date-and-time/m-p/700797#M237763</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm attempting to display a group of logs by the tranId. We log multiple user actions under a single tranId.&amp;nbsp; I'm attempting to group all of the logs for a single tranId in my dashboard.&lt;/P&gt;
&lt;P&gt;I think I figured out how I want to display the logs, but I can't get the datetime format to correctly display.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;index blah blah&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval msgTxt=substr(msgTxt, 1, 141) 
| stats list(_time) as DateTime list(msgTxt) as Message list(polNbr) as QuoteId by tranId
| eval time=strftime(_time," %m-%d-%Y %I:%M:%S %p")
| streamstats count as log by tranId
| eval tranId=if(log=1,tranId,"")
| fields - log&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="msarkaus_0-1727888678654.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/32908i5786B9E87A8EC861/image-size/medium?v=v2&amp;amp;px=400" role="button" title="msarkaus_0-1727888678654.png" alt="msarkaus_0-1727888678654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help with displaying date and time format.&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 18:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-logs-by-tranId-date-and-time/m-p/700797#M237763</guid>
      <dc:creator>msarkaus</dc:creator>
      <dc:date>2024-10-02T18:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping logs by tranId, date and time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-logs-by-tranId-date-and-time/m-p/700798#M237764</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249566"&gt;@msarkaus&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;after a stats command, you have only the fields in the stats command, so you don't have yet the _time field,&lt;/P&gt;&lt;P&gt;in affirion, if you use the list option in the stats command you probably have too many values, so try values instead list,&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index blah blah
| eval msgTxt=substr(msgTxt, 1, 141) 
| stats 
     vaues(_time) as DateTime 
     values(msgTxt) as Message 
     values(polNbr) as QuoteId 
     BY tranId
| eval DateTime=strftime(DateTime , "%m-%d-%Y %I:%M:%S %p")
| streamstats count as log by tranId
| eval tranId=if(log=1,tranId,"")
| fields - log&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 17:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-logs-by-tranId-date-and-time/m-p/700798#M237764</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-10-02T17:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping logs by tranId, date and time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-logs-by-tranId-date-and-time/m-p/701201#M237881</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249566"&gt;@msarkaus&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&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;</description>
      <pubDate>Mon, 07 Oct 2024 14:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-logs-by-tranId-date-and-time/m-p/701201#M237881</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-10-07T14:06:35Z</dc:date>
    </item>
  </channel>
</rss>

