<?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 to add Date/Time in report in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422351#M121281</link>
    <description>&lt;P&gt;Vijeta, this is the time of the log entry....I may just need to show "2019-06-13" under "Uploaded On" column.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 23:07:46 GMT</pubDate>
    <dc:creator>runiyal</dc:creator>
    <dc:date>2019-06-13T23:07:46Z</dc:date>
    <item>
      <title>Need to add Date/Time in report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422349#M121279</link>
      <description>&lt;P&gt;I have following record in my log -&lt;/P&gt;

&lt;P&gt;2019-06-13 10:59:56,664 INFO  [FileUploadWebScript] [http-apr-8983-exec-5] The Upload Service /filenet/service/temp/upload succeeded in 2.366000 seconds, Request: {account=0063, creator=Test, name=Itinerary}&lt;/P&gt;

&lt;P&gt;I need a report showing a tabular report with following columns -&lt;BR /&gt;
&lt;STRONG&gt;Name   | Account | creator | uploaded On&lt;/STRONG&gt;&lt;BR /&gt;
Itinerary   .... 0063.....       Test......   2019-06-13&lt;/P&gt;

&lt;P&gt;"Upload On" should be from the start of the line i.e., "2019-06-13 10:59:56,664"&lt;/P&gt;

&lt;P&gt;I am able to get all other columns except date/time by this query -&lt;/P&gt;

&lt;P&gt;...| stats list(name) as "Name", list(account) as "Account", list(creator) as "Creator"&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;How to change this statement so that I can get "Uploaded On" too?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 20:09:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422349#M121279</guid>
      <dc:creator>runiyal</dc:creator>
      <dc:date>2019-06-13T20:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add Date/Time in report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422350#M121280</link>
      <description>&lt;P&gt;@runiyal- Is this the value of  _time ?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 20:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422350#M121280</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-06-13T20:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add Date/Time in report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422351#M121281</link>
      <description>&lt;P&gt;Vijeta, this is the time of the log entry....I may just need to show "2019-06-13" under "Uploaded On" column.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 23:07:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422351#M121281</guid>
      <dc:creator>runiyal</dc:creator>
      <dc:date>2019-06-13T23:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add Date/Time in report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422352#M121282</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/138387"&gt;@runiyal&lt;/a&gt; - You can use eval "Uploaded On"=_time in the query to display "2019-06-13 10:59:56,664". If you want to show only Date, Use eval "Uploaded On"=strftime(_time, "%Y-%m-%d") in the query.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422352#M121282</guid>
      <dc:creator>anilchaithu</dc:creator>
      <dc:date>2020-09-30T00:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add Date/Time in report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422353#M121283</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval uploaded_On = strftime(_time, "%Y-%m-%d %H:%M:%S")
| table Uploaded_On name account creator
| rename name AS Name account AS Account create AS Creator
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 00:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422353#M121283</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-14T00:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add Date/Time in report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422354#M121284</link>
      <description>&lt;P&gt;Thanks Woodcock, it worked.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 00:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422354#M121284</guid>
      <dc:creator>runiyal</dc:creator>
      <dc:date>2019-06-14T00:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add Date/Time in report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422355#M121285</link>
      <description>&lt;P&gt;Hello Woodcock, somehow I am seeing some rows with Timestamp (Uploaded_ON) but no details around name, account &amp;amp; creator.&lt;BR /&gt;
What we can do to make sure it shows record only if "name" is present?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 01:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422355#M121285</guid>
      <dc:creator>runiyal</dc:creator>
      <dc:date>2019-06-14T01:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need to add Date/Time in report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422356#M121286</link>
      <description>&lt;P&gt;Sure, just add &lt;CODE&gt;| where isnotnull(name)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-add-Date-Time-in-report/m-p/422356#M121286</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-14T14:58:45Z</dc:date>
    </item>
  </channel>
</rss>

