<?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: Saved Search (Report) Index Time in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639405#M149</link>
    <description>&lt;P&gt;You needlessly cast _time to string with strftime at the end of your search. Just do&lt;/P&gt;&lt;PRE&gt;| eval _time=Time/1000&lt;/PRE&gt;&lt;P&gt;Oh, and if Splunk treats your Time variable as text, you'll have to convert it to number&lt;/P&gt;&lt;PRE&gt;| eval _time=tonumber(Time)/1000&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 Apr 2023 18:45:00 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2023-04-10T18:45:00Z</dc:date>
    <item>
      <title>Any suggestions on how to use my _time field to index instead the search start time?</title>
      <link>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639251#M144</link>
      <description>&lt;P&gt;Hi Guys...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a scheduled search (Report) running a query with earliest=-2h@m latest=now. I have redirected the output to a Summary index. However, the output is The output is being redirected to the index but has the _time as the begining of the search time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output has _time field from the search I run but this field is not being considered while indexing the data. Any suggestions on how to use my _time field to index instead the search start time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 17:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639251#M144</guid>
      <dc:creator>vik</dc:creator>
      <dc:date>2023-04-10T17:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Saved Search (Report) Index Time</title>
      <link>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639264#M145</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236212"&gt;@vik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you share your search?&lt;/P&gt;&lt;P&gt;did you expressed the _time in the fields outputted in the results?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 05:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639264#M145</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-08T05:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Saved Search (Report) Index Time</title>
      <link>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639273#M146</link>
      <description>&lt;P&gt;_time would normally be added to the summary index, provided it is in epoch format.&lt;/P&gt;&lt;P&gt;If it is still in epoch format and not working, please share your search in a code block &amp;lt;/&amp;gt; so we can see if there is something else which might be causing your issue.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 10:39:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639273#M146</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-08T10:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Saved Search (Report) Index Time</title>
      <link>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639403#M147</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; Yes, I am populating the data in the _time field. I can see timestamp in _time in the output but it does not seem to use "_time" field for indexing. I tried both epoch and formatting like below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| makeresults&lt;BR /&gt;| eval moduleName="".module.""&lt;BR /&gt;| eval uri="&amp;lt;&amp;lt;&amp;lt;URL&amp;gt;&amp;gt;&amp;gt;"&lt;BR /&gt;| eval header="&amp;lt;&amp;lt;&amp;lt;Header INFO&amp;gt;&amp;gt;&amp;gt;"&lt;BR /&gt;| curl method=get headerfield=header urifield=uri&lt;BR /&gt;| spath input=curl_message&lt;BR /&gt;| table "result{}.metricId" "result{}.data{}.values{}" "result{}.data{}.timestamps{}" moduleName&lt;BR /&gt;| rename "result{}.data{}.values{}" as "Failures"&lt;BR /&gt;| rename "result{}.data{}.timestamps{}" as "Time"&lt;BR /&gt;| eval tmp_field = mvzip(Failures, Time, "-|-")&lt;BR /&gt;| fields tmp_field moduleName&lt;BR /&gt;| mvexpand tmp_field&lt;BR /&gt;| makemv delim="-|-" tmp_field&lt;BR /&gt;| eval Failures = mvindex(tmp_field, 0)&lt;BR /&gt;| eval Time = mvindex(tmp_field, 1)&lt;BR /&gt;| eval _time=strftime((Time/1000),"%Y-%m-%dT%H:%M:%S.%Q")&lt;BR /&gt;| fields - tmp_field Time&lt;BR /&gt;| search Failures!=null&lt;BR /&gt;| table _time moduleName Failures&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 17:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639403#M147</guid>
      <dc:creator>vik</dc:creator>
      <dc:date>2023-04-10T17:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Saved Search (Report) Index Time</title>
      <link>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639404#M148</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Yes, I am populating the data in the _time field. I can see timestamp in _time in the output but it does not seem to use "_time" field for indexing. I tried both epoch and formatting like below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| makeresults&lt;BR /&gt;| eval moduleName="".module.""&lt;BR /&gt;| eval uri="&amp;lt;&amp;lt;&amp;lt;URL&amp;gt;&amp;gt;&amp;gt;"&lt;BR /&gt;| eval header="&amp;lt;&amp;lt;&amp;lt;Header INFO&amp;gt;&amp;gt;&amp;gt;"&lt;BR /&gt;| curl method=get headerfield=header urifield=uri&lt;BR /&gt;| spath input=curl_message&lt;BR /&gt;| table "result{}.metricId" "result{}.data{}.values{}" "result{}.data{}.timestamps{}" moduleName&lt;BR /&gt;| rename "result{}.data{}.values{}" as "Failures"&lt;BR /&gt;| rename "result{}.data{}.timestamps{}" as "Time"&lt;BR /&gt;| eval tmp_field = mvzip(Failures, Time, "-|-")&lt;BR /&gt;| fields tmp_field moduleName&lt;BR /&gt;| mvexpand tmp_field&lt;BR /&gt;| makemv delim="-|-" tmp_field&lt;BR /&gt;| eval Failures = mvindex(tmp_field, 0)&lt;BR /&gt;| eval Time = mvindex(tmp_field, 1)&lt;BR /&gt;| eval _time=strftime((Time/1000),"%Y-%m-%dT%H:%M:%S.%Q")&lt;BR /&gt;| fields - tmp_field Time&lt;BR /&gt;| search Failures!=null&lt;BR /&gt;| table _time moduleName Failures&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 17:43:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639404#M148</guid>
      <dc:creator>vik</dc:creator>
      <dc:date>2023-04-10T17:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Saved Search (Report) Index Time</title>
      <link>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639405#M149</link>
      <description>&lt;P&gt;You needlessly cast _time to string with strftime at the end of your search. Just do&lt;/P&gt;&lt;PRE&gt;| eval _time=Time/1000&lt;/PRE&gt;&lt;P&gt;Oh, and if Splunk treats your Time variable as text, you'll have to convert it to number&lt;/P&gt;&lt;PRE&gt;| eval _time=tonumber(Time)/1000&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Apr 2023 18:45:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639405#M149</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-10T18:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Saved Search (Report) Index Time</title>
      <link>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639865#M150</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;using tonumber helped! I am now able to index the data using the timestamp returned as part of my search.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 18:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639865#M150</guid>
      <dc:creator>vik</dc:creator>
      <dc:date>2023-04-13T18:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Saved Search (Report) Index Time</title>
      <link>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639912#M151</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236212"&gt;@vik&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 07:01:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Any-suggestions-on-how-to-use-my-time-field-to-index-instead-the/m-p/639912#M151</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-14T07:01:23Z</dc:date>
    </item>
  </channel>
</rss>

