<?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 use info_max_time as _time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94009#M24221</link>
    <description>&lt;P&gt;Thanks for all the suggestions!  I have to use a specific start time for my use case -- but based on the suggestions in comments, I've gotten this to work:&lt;/P&gt;

&lt;P&gt;Here is my query with subsearch&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search index=summary marker=abc earliest=1350595800 | rename info_max_time as _time | format maxresults=0 ] OR index=main sourcetype=xyz OR sourcetype=123 earliest=1350595800 | timechart span=10m count(eval(sourcetype=="abc")) as XYZ count(eval(sourcetype=="123")) as 123 count(eval(marker=="abc")) as ABC
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Oct 2012 22:49:38 GMT</pubDate>
    <dc:creator>the_wolverine</dc:creator>
    <dc:date>2012-10-18T22:49:38Z</dc:date>
    <item>
      <title>How to use info_max_time as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94002#M24214</link>
      <description>&lt;P&gt;I'm running a search where I perform a rename of another time field to _time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mysummarysearch | rename info_max_time as _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It works as a simple search but if I try to do anything bolder, like use it in a subsearch and append to another search, I lose the results of the subsearch entirely (only the results of the outer search are returned.)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 22:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94002#M24214</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2012-10-17T22:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use info_max_time as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94003#M24215</link>
      <description>&lt;P&gt;Why not rename info_max_time as another name rather than using _time?  Personally I've noticed quarky thing when renaming field to metadata fields when performing complex searches.  Another question in your outer search are you using "...| fields &lt;FIELD1&gt;,&lt;FIELD2&gt;"  before performing a subsearch or append?&lt;/FIELD2&gt;&lt;/FIELD1&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:38:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94003#M24215</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2020-09-28T12:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use info_max_time as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94004#M24216</link>
      <description>&lt;P&gt;Yeah, I'm seeing odd behavior as well but I'm not sure how I would timechart this if I don't use _time?&lt;/P&gt;

&lt;P&gt;My outersearch is just (filtered) events, all fields.  I'm trying to combine 2 sources of data so I can timechart them all based on _time.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 23:42:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94004#M24216</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2012-10-17T23:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use info_max_time as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94005#M24217</link>
      <description>&lt;P&gt;Are you trying to rename it as _time so that Splunk uses it as the time of the event? In my experience I haven't had any success getting Splunk to treat a different field as the native time of the event at search time.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 00:12:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94005#M24217</guid>
      <dc:creator>dbryan</dc:creator>
      <dc:date>2012-10-18T00:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use info_max_time as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94006#M24218</link>
      <description>&lt;P&gt;Yes, it works!  But only as a simple search:&lt;/P&gt;

&lt;P&gt;search | rename info_max_time as _time&lt;/P&gt;

&lt;P&gt;However if I want to subsearch that, Splunk doesn't agree with me.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94006#M24218</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2020-09-28T12:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use info_max_time as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94007#M24219</link>
      <description>&lt;P&gt;Can you post the subsearch where you were attempting to use the _time values as arguments to the outer search?  If you use time arguments in the search clause you have to use the earliest and latest search terms,  ie earliest=-24h,   or earliest=1350408576.    So really if you want to use them as search arguments you need to rename them to earliest and latest...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2012 06:48:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94007#M24219</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-10-18T06:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use info_max_time as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94008#M24220</link>
      <description>&lt;P&gt;I haved used the following instead of using timechart.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
mysummarysearch | rename info_max_time as ctime | chart span=5m max(mycount) as "Max Count" over ctime  by host&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
mysummarysearch | rename info_max_time as ctime | stats max(cpu) as mcpu, stdev(cpu) as scpu | fields ctime, mcpu, scpu&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:38:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94008#M24220</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2020-09-28T12:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use info_max_time as _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94009#M24221</link>
      <description>&lt;P&gt;Thanks for all the suggestions!  I have to use a specific start time for my use case -- but based on the suggestions in comments, I've gotten this to work:&lt;/P&gt;

&lt;P&gt;Here is my query with subsearch&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search index=summary marker=abc earliest=1350595800 | rename info_max_time as _time | format maxresults=0 ] OR index=main sourcetype=xyz OR sourcetype=123 earliest=1350595800 | timechart span=10m count(eval(sourcetype=="abc")) as XYZ count(eval(sourcetype=="123")) as 123 count(eval(marker=="abc")) as ABC
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Oct 2012 22:49:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-info-max-time-as-time/m-p/94009#M24221</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2012-10-18T22:49:38Z</dc:date>
    </item>
  </channel>
</rss>

