<?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 add hours to _time for specific events using eval? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-hours-to-time-for-specific-events-using-eval/m-p/217393#M63868</link>
    <description>&lt;P&gt;worked perfect, thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2015 16:27:59 GMT</pubDate>
    <dc:creator>kevinjacks</dc:creator>
    <dc:date>2015-09-09T16:27:59Z</dc:date>
    <item>
      <title>How to add hours to _time for specific events using eval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-hours-to-time-for-specific-events-using-eval/m-p/217391#M63866</link>
      <description>&lt;P&gt;I need to add 3 hours to records which have SITE=1 and not change anything for other sites.  &lt;/P&gt;

&lt;P&gt;I started with this, but I can't figure out how to incorporate that into an IF statement.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time=_time+10800
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Sep 2015 14:41:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-hours-to-time-for-specific-events-using-eval/m-p/217391#M63866</guid>
      <dc:creator>kevinjacks</dc:creator>
      <dc:date>2015-09-09T14:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add hours to _time for specific events using eval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-hours-to-time-for-specific-events-using-eval/m-p/217392#M63867</link>
      <description>&lt;P&gt;This should probably work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time=if(SITE==1, _time+10800, _time)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Sep 2015 14:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-hours-to-time-for-specific-events-using-eval/m-p/217392#M63867</guid>
      <dc:creator>dkoops</dc:creator>
      <dc:date>2015-09-09T14:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add hours to _time for specific events using eval?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-hours-to-time-for-specific-events-using-eval/m-p/217393#M63868</link>
      <description>&lt;P&gt;worked perfect, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2015 16:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-hours-to-time-for-specific-events-using-eval/m-p/217393#M63868</guid>
      <dc:creator>kevinjacks</dc:creator>
      <dc:date>2015-09-09T16:27:59Z</dc:date>
    </item>
  </channel>
</rss>

