<?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 to give a time value to a field with eval command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-give-a-time-value-to-a-field-with-eval-command/m-p/395589#M114871</link>
    <description>&lt;P&gt;I'd suggest using &lt;CODE&gt;now()&lt;/CODE&gt; instead of &lt;CODE&gt;_time&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jun 2018 07:20:52 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2018-06-19T07:20:52Z</dc:date>
    <item>
      <title>How to give a time value to a field with eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-give-a-time-value-to-a-field-with-eval-command/m-p/395587#M114869</link>
      <description>&lt;P&gt;Hey &lt;BR /&gt;
I want to create a field with a time value using following commend&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup task_time_worked.csv | eval deadline=-1week@week
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;System throw me an error&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Error in 'eval' command: The expression is malformed. "
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestion of what is the right way to write this spl?&lt;BR /&gt;
Thanks in advance&lt;BR /&gt;
Regards&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 01:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-give-a-time-value-to-a-field-with-eval-command/m-p/395587#M114869</guid>
      <dc:creator>samlinsongguo</dc:creator>
      <dc:date>2018-06-19T01:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to give a time value to a field with eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-give-a-time-value-to-a-field-with-eval-command/m-p/395588#M114870</link>
      <description>&lt;P&gt;Try this: &lt;CODE&gt;| eval deadline= relative_time(_time, "-1w@w1") | convert ctime(deadline)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 02:53:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-give-a-time-value-to-a-field-with-eval-command/m-p/395588#M114870</guid>
      <dc:creator>amiftah</dc:creator>
      <dc:date>2018-06-19T02:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to give a time value to a field with eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-give-a-time-value-to-a-field-with-eval-command/m-p/395589#M114871</link>
      <description>&lt;P&gt;I'd suggest using &lt;CODE&gt;now()&lt;/CODE&gt; instead of &lt;CODE&gt;_time&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 07:20:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-give-a-time-value-to-a-field-with-eval-command/m-p/395589#M114871</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-19T07:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to give a time value to a field with eval command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-give-a-time-value-to-a-field-with-eval-command/m-p/395590#M114872</link>
      <description>&lt;P&gt;thank you for your help&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 08:42:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-give-a-time-value-to-a-field-with-eval-command/m-p/395590#M114872</guid>
      <dc:creator>samlinsongguo</dc:creator>
      <dc:date>2018-06-19T08:42:59Z</dc:date>
    </item>
  </channel>
</rss>

