<?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: Use of _indextime field in table or stats command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340527#M165477</link>
    <description>&lt;P&gt;No luck -&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3759iF9A47F6BFCA14F4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2017 00:57:45 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2017-11-01T00:57:45Z</dc:date>
    <item>
      <title>Use of _indextime field in table or stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340523#M165473</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;

&lt;P&gt;How can I use _indextime field in table or stats command without renaming or converting it.&lt;/P&gt;

&lt;P&gt;Not working&lt;BR /&gt;
Ex:  *  | table  host source sourcetype _time _indextime  _raw&lt;/P&gt;

&lt;P&gt;Its working if I rename the _indextime or convert the _indextime, But I want the results with _indextime as field&lt;/P&gt;

&lt;P&gt;Working&lt;BR /&gt;
Ex: * | eval indextime=_indextime | table  host source sourcetype _time  indextime  _raw&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 23:04:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340523#M165473</guid>
      <dc:creator>rakshithreddy</dc:creator>
      <dc:date>2017-10-31T23:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _indextime field in table or stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340524#M165474</link>
      <description>&lt;P&gt;Try please - &lt;CODE&gt;base search | eval indextime=strftime(_indextime,"%Y-%m-%d %H:%M:%S") | table indextime&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 23:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340524#M165474</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-10-31T23:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _indextime field in table or stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340525#M165475</link>
      <description>&lt;P&gt;thanks for reply,&lt;/P&gt;

&lt;P&gt;I want it to be - &lt;BR /&gt;
base search | table _indextime, the field name should be _indextime  as i am sending these results to an external application &amp;amp; that application can only detect if its _indextime&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 23:35:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340525#M165475</guid>
      <dc:creator>rakshithreddy</dc:creator>
      <dc:date>2017-10-31T23:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _indextime field in table or stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340526#M165476</link>
      <description>&lt;P&gt;I think you're out of luck. You can't display exact "_indextime" as the output will always filter.&lt;/P&gt;

&lt;P&gt;You can fake it and put in a space though.&lt;/P&gt;

&lt;P&gt;index=_internal  |  rename _indextime AS " _indextime"|   table host " _indextime"&lt;/P&gt;

&lt;P&gt;Notice the space in the quotes.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 23:51:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340526#M165476</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2017-10-31T23:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _indextime field in table or stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340527#M165477</link>
      <description>&lt;P&gt;No luck -&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3759iF9A47F6BFCA14F4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 00:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340527#M165477</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-11-01T00:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _indextime field in table or stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340528#M165478</link>
      <description>&lt;P&gt;Hi @rakshithreddy,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;_indextime&lt;/CODE&gt; is an internal filed and a hidden field, it will not be displayed in search results unless renamed or used with an &lt;CODE&gt;eval&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;So whenever you &lt;CODE&gt;eval&lt;/CODE&gt; &lt;CODE&gt;_indextime&lt;/CODE&gt; it will work.&lt;/P&gt;

&lt;P&gt;Please refer below document for more information.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/Knowledge/Usedefaultfields"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.0/Knowledge/Usedefaultfields&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Happy Splunking&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 18:17:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340528#M165478</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-01T18:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _indextime field in table or stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340529#M165479</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;Thanks for reply&lt;/P&gt;

&lt;P&gt;We can display _raw , _time not _indextime &amp;amp; not sure why &lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 18:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340529#M165479</guid>
      <dc:creator>rakshithreddy</dc:creator>
      <dc:date>2017-11-01T18:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _indextime field in table or stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340530#M165480</link>
      <description>&lt;P&gt;Hi @rakshithreddy,&lt;/P&gt;

&lt;P&gt;Good question.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;_raw&lt;/CODE&gt; and &lt;CODE&gt;_time&lt;/CODE&gt; is &lt;STRONG&gt;NOT hidden&lt;/STRONG&gt; field. &lt;/P&gt;

&lt;P&gt;The &lt;CODE&gt;_raw&lt;/CODE&gt; field contains the original raw data of an event. The search command uses the data in &lt;CODE&gt;_raw&lt;/CODE&gt; when performing searches and data extraction.&lt;/P&gt;

&lt;P&gt;The &lt;CODE&gt;_time&lt;/CODE&gt; field contains an event's timestamp expressed in Unix time. This field is used to create the event timeline in Splunk Web.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;_indextime&lt;/CODE&gt; is a &lt;STRONG&gt;hidden&lt;/STRONG&gt; field that's why we have to eval &lt;CODE&gt;_indextime&lt;/CODE&gt; to make in use.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 18:41:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340530#M165480</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-01T18:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _indextime field in table or stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340531#M165481</link>
      <description>&lt;P&gt;Good to know, &lt;BR /&gt;
But I was looking for anyway if we cheat this thing.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 19:00:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340531#M165481</guid>
      <dc:creator>rakshithreddy</dc:creator>
      <dc:date>2017-11-01T19:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use of _indextime field in table or stats command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340532#M165482</link>
      <description>&lt;P&gt;Hi @rakshithreddy,&lt;/P&gt;

&lt;P&gt;Yes, for you I have a  trick but in configuration.&lt;/P&gt;

&lt;P&gt;If we set EVAL in &lt;CODE&gt;props.conf&lt;/CODE&gt; then we don't need eval in any search in the app.&lt;/P&gt;

&lt;P&gt;Just put below configuration in props.conf.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MY_SOURCETYPE]
EVAL-indextime=_indextime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=MY_SOURCETYPE | table _time indextime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Happy Splunking.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 19:13:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-of-indextime-field-in-table-or-stats-command/m-p/340532#M165482</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-01T19:13:00Z</dc:date>
    </item>
  </channel>
</rss>

