<?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 assign search_now value with info_max_time in _raw? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-assign-search-now-value-with-info-max-time-in-raw/m-p/679992#M232453</link>
    <description>&lt;P&gt;I think I figured it out&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=original_index

| addinfo
| eval search_now=info_max_time
| eval _raw=printf("_time=%d", info_min_time)

| foreach "*"
[| eval _raw = _raw.case(isnull('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'),"",
mvcount('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;')&amp;gt;1,", &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=\"".mvjoin('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',"###")."\"",
true(), ", &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=\"".'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'."\"")
| fields - "&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;" ]

| collect   index=summary  testmode=false    file=summary_test_1.stash_new   name=summary_test_1"   marker="report=\"summary_test_1\""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 18:55:35 GMT</pubDate>
    <dc:creator>LearningGuy</dc:creator>
    <dc:date>2024-03-07T18:55:35Z</dc:date>
    <item>
      <title>How to assign search_now value with info_max_time in _raw?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-assign-search-now-value-with-info-max-time-in-raw/m-p/679989#M232452</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;How to assign &lt;STRONG&gt;search_now&lt;/STRONG&gt;&amp;nbsp;value with &lt;STRONG&gt;info_max_time&lt;/STRONG&gt; in _raw?&lt;BR /&gt;&lt;BR /&gt;I am trying to push "past" data using collect command into summary index.&amp;nbsp;&lt;BR /&gt;I want to use &lt;STRONG&gt;search_now&lt;/STRONG&gt;&amp;nbsp;as a baseline time&lt;BR /&gt;&lt;BR /&gt;I appreciate your help.&amp;nbsp; Thank you&lt;BR /&gt;&lt;BR /&gt;Here's my attempt using some code from &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;, but it gave me duplicate &lt;STRONG&gt;search_now&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=original_index

| addinfo
| eval _raw=printf("search_now=%d", info_max_time)

| foreach "*"
[| eval _raw = _raw.case(isnull('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'),"",
mvcount('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;')&amp;gt;1,", &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=\"".mvjoin('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',"###")."\"",
true(), ", &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=\"".'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'."\"")
| fields - "&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;" ]

| collect   index=summary  testmode=false    file=summary_test_1.stash_new   name=summary_test_1"   marker="report=\"summary_test_1\""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 18:56:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-assign-search-now-value-with-info-max-time-in-raw/m-p/679989#M232452</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-03-07T18:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign search_now value with info_max_time in _raw?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-assign-search-now-value-with-info-max-time-in-raw/m-p/679992#M232453</link>
      <description>&lt;P&gt;I think I figured it out&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=original_index

| addinfo
| eval search_now=info_max_time
| eval _raw=printf("_time=%d", info_min_time)

| foreach "*"
[| eval _raw = _raw.case(isnull('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'),"",
mvcount('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;')&amp;gt;1,", &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=\"".mvjoin('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',"###")."\"",
true(), ", &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=\"".'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'."\"")
| fields - "&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;" ]

| collect   index=summary  testmode=false    file=summary_test_1.stash_new   name=summary_test_1"   marker="report=\"summary_test_1\""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 18:55:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-assign-search-now-value-with-info-max-time-in-raw/m-p/679992#M232453</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-03-07T18:55:35Z</dc:date>
    </item>
  </channel>
</rss>

