<?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: strptime for a existing time field in lookup table and adding new time field (_time) in the same lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309860#M92960</link>
    <description>&lt;P&gt;give the name as the inputlookup file u can still able to edit  it&lt;/P&gt;

&lt;P&gt;| inputlookup yourtablename.csv&lt;BR /&gt;
  | eval my_time = strptime (date_last, "%Y-%m-%FT%H:%M%S.000Z")&lt;BR /&gt;
  | eval _time = my_time&lt;BR /&gt;
  | outputlookup yourtablename.csv&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:45:31 GMT</pubDate>
    <dc:creator>splunker12er</dc:creator>
    <dc:date>2020-09-29T18:45:31Z</dc:date>
    <item>
      <title>strptime for a existing time field in lookup table and adding new time field (_time) in the same lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309854#M92954</link>
      <description>&lt;P&gt;i have a timefield "date_last" in a lookup table: 2018-03-20T12:25:00.000Z &lt;/P&gt;

&lt;P&gt;which i have tried to extract the field using the following(correct me if i'm wrong):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| myinputlookup
| eval my_time = strptime (date_last, "%Y-%m-%FT%H:%M%S.000Z")
| eval _time = my_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;how would I update the lookup table to contain a new field labeled as "_time"&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 05:53:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309854#M92954</guid>
      <dc:creator>esmonder</dc:creator>
      <dc:date>2018-04-02T05:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: strptime for a existing time field in lookup table and adding new time field (_time) in the same lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309855#M92955</link>
      <description>&lt;P&gt;are you trying to read and write to the same lookup file ?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 07:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309855#M92955</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2018-04-02T07:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: strptime for a existing time field in lookup table and adding new time field (_time) in the same lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309856#M92956</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; | myinputlookup
 | eval my_time = strptime (date_last, "%Y-%m-%FT%H:%M%S.000Z")
 | eval _time = my_time
 | outputlookup outlookup.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Apr 2018 07:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309856#M92956</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2018-04-02T07:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: strptime for a existing time field in lookup table and adding new time field (_time) in the same lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309857#M92957</link>
      <description>&lt;P&gt;yes i am &lt;BR /&gt;
/10char&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 07:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309857#M92957</guid>
      <dc:creator>esmonder</dc:creator>
      <dc:date>2018-04-02T07:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: strptime for a existing time field in lookup table and adding new time field (_time) in the same lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309858#M92958</link>
      <description>&lt;P&gt;any way to update the existing lookup file?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 07:31:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309858#M92958</guid>
      <dc:creator>esmonder</dc:creator>
      <dc:date>2018-04-02T07:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: strptime for a existing time field in lookup table and adding new time field (_time) in the same lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309859#M92959</link>
      <description>&lt;P&gt;This may be help you:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/387428/how-to-update-a-lookup-table.html"&gt;https://answers.splunk.com/answers/387428/how-to-update-a-lookup-table.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 07:36:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309859#M92959</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-02T07:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: strptime for a existing time field in lookup table and adding new time field (_time) in the same lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309860#M92960</link>
      <description>&lt;P&gt;give the name as the inputlookup file u can still able to edit  it&lt;/P&gt;

&lt;P&gt;| inputlookup yourtablename.csv&lt;BR /&gt;
  | eval my_time = strptime (date_last, "%Y-%m-%FT%H:%M%S.000Z")&lt;BR /&gt;
  | eval _time = my_time&lt;BR /&gt;
  | outputlookup yourtablename.csv&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:45:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309860#M92960</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2020-09-29T18:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: strptime for a existing time field in lookup table and adding new time field (_time) in the same lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309861#M92961</link>
      <description>&lt;P&gt;Thanks it works! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 10:10:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309861#M92961</guid>
      <dc:creator>esmonder</dc:creator>
      <dc:date>2018-04-02T10:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: strptime for a existing time field in lookup table and adding new time field (_time) in the same lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309862#M92962</link>
      <description>&lt;P&gt;hmm it seems to work on the search app (i see _time in the table), but when i went to review the csv file with the lookup editor app, the table just doubled in size (2x rows, no new columns). &lt;BR /&gt;
cant seem to update the original csv file. &lt;/P&gt;

&lt;P&gt;did more research and came out with this SPL but still didnt seem to work:&lt;BR /&gt;
    | inputlookup append=true test.csv &lt;BR /&gt;
    | appendcols &lt;BR /&gt;
        [| inputlookup append=true test.csv &lt;BR /&gt;
        | eval n = strftime((strptime(date_last, "%Y-%m-%dT%H:%M:%S.000Z")), "%m/%d/%Y %H:%M:%S") &lt;BR /&gt;
        | eval _time = n] &lt;BR /&gt;
    | outputlookup append=true test.csv&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 01:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/strptime-for-a-existing-time-field-in-lookup-table-and-adding/m-p/309862#M92962</guid>
      <dc:creator>esmonder</dc:creator>
      <dc:date>2018-04-03T01:30:58Z</dc:date>
    </item>
  </channel>
</rss>

