<?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 you get Splunk to change timestamps from a lookup table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-Splunk-to-change-timestamps-from-a-lookup-table/m-p/454778#M128663</link>
    <description>&lt;P&gt;| inputlookup REPORT.csv | eval time=strptime(lastLogonTimestamp,"%m/%d/%y")&lt;/P&gt;

&lt;P&gt;The above seemed to work.&lt;/P&gt;

&lt;P&gt;Thanks everyone!&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2019 15:41:07 GMT</pubDate>
    <dc:creator>UMDTERPS</dc:creator>
    <dc:date>2019-02-08T15:41:07Z</dc:date>
    <item>
      <title>How do you get Splunk to change timestamps from a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-Splunk-to-change-timestamps-from-a-lookup-table/m-p/454774#M128659</link>
      <description>&lt;P&gt;We are using a lookuptable with CSV's for reports. However, the &lt;CODE&gt;_time&lt;/CODE&gt; field has the following format for time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2015-06-10T20:04:51.254843Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I get Splunk to interpret that for &lt;CODE&gt;_time&lt;/CODE&gt;?  &lt;/P&gt;

&lt;P&gt;Is there a way to edit the &lt;CODE&gt;_time&lt;/CODE&gt; field to get rid of everything from the "T" on and show 2015-06-10 and use strptime?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 16:03:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-Splunk-to-change-timestamps-from-a-lookup-table/m-p/454774#M128659</guid>
      <dc:creator>UMDTERPS</dc:creator>
      <dc:date>2019-02-06T16:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get Splunk to change timestamps from a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-Splunk-to-change-timestamps-from-a-lookup-table/m-p/454775#M128660</link>
      <description>&lt;P&gt;This time can be parsed by &lt;CODE&gt;strptime&lt;/CODE&gt; without any changes. For example&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|makeresults | eval time = "2015-06-10T20:04:51.254843Z" | eval parsedTime = strptime(time, "%Y-%m-%dT%H:%M:%S.%6QZ")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 19:43:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-Splunk-to-change-timestamps-from-a-lookup-table/m-p/454775#M128660</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-06T19:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get Splunk to change timestamps from a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-Splunk-to-change-timestamps-from-a-lookup-table/m-p/454776#M128661</link>
      <description>&lt;P&gt;It works somewhat, but the &lt;CODE&gt;eval&lt;/CODE&gt; of 2015-06-10T20:04:51.254843Z converts the time to:&lt;/P&gt;

&lt;P&gt;2019-02-07 10:09:54&lt;/P&gt;

&lt;P&gt;The time should be June 10, 2015.&lt;/P&gt;

&lt;P&gt;I'm trying to get Spunk to interpret the format  of our time field " 2015-06-10T20:04:51.254843Z" to make a time graph.&lt;/P&gt;

&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 16:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-Splunk-to-change-timestamps-from-a-lookup-table/m-p/454776#M128661</guid>
      <dc:creator>UMDTERPS</dc:creator>
      <dc:date>2019-02-07T16:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get Splunk to change timestamps from a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-Splunk-to-change-timestamps-from-a-lookup-table/m-p/454777#M128662</link>
      <description>&lt;P&gt;you need to assign _time to the lookup time value.&lt;/P&gt;

&lt;P&gt;For ex.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval _time=strptime(lookuptime,"%Y-%m-%dT%H:%M:%S.%6QZ")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Feb 2019 16:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-Splunk-to-change-timestamps-from-a-lookup-table/m-p/454777#M128662</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-07T16:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you get Splunk to change timestamps from a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-Splunk-to-change-timestamps-from-a-lookup-table/m-p/454778#M128663</link>
      <description>&lt;P&gt;| inputlookup REPORT.csv | eval time=strptime(lastLogonTimestamp,"%m/%d/%y")&lt;/P&gt;

&lt;P&gt;The above seemed to work.&lt;/P&gt;

&lt;P&gt;Thanks everyone!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 15:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-get-Splunk-to-change-timestamps-from-a-lookup-table/m-p/454778#M128663</guid>
      <dc:creator>UMDTERPS</dc:creator>
      <dc:date>2019-02-08T15:41:07Z</dc:date>
    </item>
  </channel>
</rss>

