<?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 Adding and defining the value for a new Search Field. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-and-defining-the-value-for-a-new-Search-Field/m-p/691207#M235389</link>
    <description>&lt;P&gt;How do I add a&amp;nbsp; new field and set the value to seven days ago from the current date, snapped to the&lt;BR /&gt;beginning of the current date? I know the date syntax should be "earliest=-7d@d", but am unsure if I should use the eval command to add the field and the specific syntax. Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2024 19:43:51 GMT</pubDate>
    <dc:creator>Substance82</dc:creator>
    <dc:date>2024-06-20T19:43:51Z</dc:date>
    <item>
      <title>Adding and defining the value for a new Search Field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-and-defining-the-value-for-a-new-Search-Field/m-p/691207#M235389</link>
      <description>&lt;P&gt;How do I add a&amp;nbsp; new field and set the value to seven days ago from the current date, snapped to the&lt;BR /&gt;beginning of the current date? I know the date syntax should be "earliest=-7d@d", but am unsure if I should use the eval command to add the field and the specific syntax. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 19:43:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-and-defining-the-value-for-a-new-Search-Field/m-p/691207#M235389</guid>
      <dc:creator>Substance82</dc:creator>
      <dc:date>2024-06-20T19:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding and defining the value for a new Search Field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-and-defining-the-value-for-a-new-Search-Field/m-p/691210#M235390</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;eval&lt;/FONT&gt; is the command to use to add a new field to an event.&amp;nbsp; Use the &lt;FONT face="courier new,courier"&gt;relative_time&lt;/FONT&gt; function to help set the value.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval newField = relative_time(now(), "-7d@d")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 20:12:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-and-defining-the-value-for-a-new-Search-Field/m-p/691210#M235390</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-06-20T20:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding and defining the value for a new Search Field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-and-defining-the-value-for-a-new-Search-Field/m-p/691214#M235393</link>
      <description>&lt;P&gt;Thanks a million!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 20:41:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-and-defining-the-value-for-a-new-Search-Field/m-p/691214#M235393</guid>
      <dc:creator>Substance82</dc:creator>
      <dc:date>2024-06-20T20:41:07Z</dc:date>
    </item>
  </channel>
</rss>

