<?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: Need help decuple only time from below record in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683228#M233336</link>
    <description>&lt;P&gt;is there way to add AM OR PM according to time.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 10:45:13 GMT</pubDate>
    <dc:creator>bhaskar5428</dc:creator>
    <dc:date>2024-04-04T10:45:13Z</dc:date>
    <item>
      <title>Need help decuple only time from below record</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683219#M233334</link>
      <description>&lt;P&gt;&lt;STRONG&gt;My apologies&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;i was using "eventTimestamp" instead of&amp;nbsp;&amp;nbsp;"&lt;SPAN class=""&gt;@timestamp&lt;/SPAN&gt;" in my rex command&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i just realized&amp;nbsp;and its working now , However i do not need date in last column need only time.&lt;BR /&gt;Please help how to do that.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;please find below details&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;================================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;index=* namespace="dk1017-j" sourcetype="kube:container:kafka-clickhouse-snapshot-writer" message="*Snapshot event published*" AND message="*dbI-LDN*" AND message="*2024-04-03*" AND message="*"&lt;BR /&gt;|fields message&lt;BR /&gt;|rex field=_raw "\s+date=(?&amp;lt;BusDate&amp;gt;\d{4}-\d{2}-\d{2})"&lt;BR /&gt;|rex field=_raw "sourceSystem=(?&amp;lt;Source&amp;gt;[^,]*)"&lt;BR /&gt;|rex field=_raw "entityType=(?&amp;lt;Entity&amp;gt;\w+)"&lt;BR /&gt;|rex field=_raw "\"&lt;FONT color="#0000FF"&gt;@timestamp&lt;/FONT&gt;\":\"(?&amp;lt;Time&amp;gt;\d{4}-\d{2}-\d{2}[T]\d{2}:\d{2})"&amp;nbsp; --&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;Please help Here&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;|sort Time desc&lt;BR /&gt;|dedup Entity&lt;BR /&gt;|table Source, BusDate, Entity, Time&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;================================================================================&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Screenshot&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhaskar5428_0-1712226124075.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30232i2D893C58B9736B81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhaskar5428_0-1712226124075.png" alt="bhaskar5428_0-1712226124075.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;raw data&lt;/P&gt;&lt;DIV class=""&gt;{"&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;@timestamp&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/FONT&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;"&lt;SPAN class=""&gt;2024-04-04T&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;02:25&lt;/STRONG&gt;&lt;STRONG&gt;:59&lt;/STRONG&gt;&lt;/FONT&gt;.366Z&lt;/SPAN&gt;","&lt;SPAN class=""&gt;level&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;"&lt;SPAN class=""&gt;INFO&lt;/SPAN&gt;","&lt;SPAN class=""&gt;message&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;"&lt;SPAN class=""&gt;Snapshot&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;event&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;published:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SnapshotEvent&lt;/SPAN&gt;(&lt;SPAN class=""&gt;version=SnapshotVersion&lt;/SPAN&gt;(&lt;SPAN class=""&gt;sourceSystem=dbI-LDN&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;entityType=ACCOUNT&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;subType=&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;date=2024-04-03&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;version=1&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;snapshotSize=326718&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;uuid=8739e273-cedc-482b-b696-48357efc8704&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;eventTimestamp=2024-04-04T02:24:52.762129638&lt;/SPAN&gt;),&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;status=CREATED&lt;/SPAN&gt;)","&lt;SPAN class=""&gt;thread&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;"&lt;SPAN class=""&gt;snapshot-checker-3&lt;/SPAN&gt;","&lt;SPAN class=""&gt;loggerName&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt;"&lt;SPAN class=""&gt;com.db.sdda.dc.kafka.snapshot.writer.InternalEventSender&lt;/SPAN&gt;"}&lt;/DIV&gt;&lt;P&gt;&lt;A class="" href="https://scribe.prd.de.intranet.db.com/sh/en-US/app/db_scribe_search/search?q=search%20index%3D*%20namespace%3D%22dk1017-j%22%20sourcetype%3D%22kube%3Acontainer%3Akafka-clickhouse-snapshot-writer%22%20message%3D%22*Snapshot%20event%20published*%22%20AND%20%20message%3D%22*dbI-LDN*%22%20AND%20message%3D%22*2024-04-03*%22%20AND%20message%3D%22*%22&amp;amp;display.page.search.mode=smart&amp;amp;dispatch.sample_ratio=1&amp;amp;earliest=0&amp;amp;latest=&amp;amp;display.page.search.tab=events&amp;amp;display.general.type=events&amp;amp;sid=1712211473.6335533_4AF7243B-4198-411B-94B8-7F2D8905C8A6#" target="_blank" rel="noopener nofollow noreferrer"&gt;Show syntax highlighted&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need only time 02:25:59 AM/PM in last column&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 10:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683219#M233334</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-04-04T10:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help decuple only time from below record</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683222#M233335</link>
      <description>&lt;LI-CODE lang="markup"&gt;|rex field=_raw "\"@timestamp\":\"\d{4}-\d{2}-\d{2}T(?&amp;lt;Time&amp;gt;\d{2}:\d{2})"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Apr 2024 10:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683222#M233335</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-04T10:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need help decuple only time from below record</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683228#M233336</link>
      <description>&lt;P&gt;is there way to add AM OR PM according to time.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 10:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683228#M233336</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-04-04T10:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help decuple only time from below record</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683237#M233337</link>
      <description>&lt;P&gt;Yes, extract the full timestamp (including the date), then parse it with strptime() into an epoch time value (number of seconds since 1970), then format it with strftime() using the relevant time variables&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables" target="_blank"&gt;Date and time format variables - Splunk Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 11:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683237#M233337</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-04T11:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help decuple only time from below record</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683361#M233356</link>
      <description>&lt;P&gt;Appreciate if you can share some example .&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 04:50:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683361#M233356</guid>
      <dc:creator>bhaskar5428</dc:creator>
      <dc:date>2024-04-05T04:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help decuple only time from below record</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683374#M233358</link>
      <description>&lt;P&gt;Assuming your ingest has already parsed your timestamp into the _time field, then you can just format that to get the time&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Time=strftime(_time, "%I:%M %p")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Apr 2024 08:34:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-decuple-only-time-from-below-record/m-p/683374#M233358</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-05T08:34:00Z</dc:date>
    </item>
  </channel>
</rss>

