<?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: Is it possible to log the local time on the incoming logs ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83857#M17432</link>
    <description>&lt;P&gt;Yes, that's correct.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jun 2012 08:40:44 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-06-27T08:40:44Z</dc:date>
    <item>
      <title>Is it possible to log the local time on the incoming logs ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83851#M17426</link>
      <description>&lt;P&gt;Is it possible to log the local time on the incoming logs ? &lt;/P&gt;

&lt;P&gt;If the log's time is different those logs are missed out in the charts and I want to log the local time on to the logs. So, that whatever be the timezone or time on the logs it should show with the local time.&lt;/P&gt;

&lt;P&gt;Thanks !!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2012 05:45:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83851#M17426</guid>
      <dc:creator>ranjyotiprakash</dc:creator>
      <dc:date>2012-06-26T05:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to log the local time on the incoming logs ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83852#M17427</link>
      <description>&lt;P&gt;You can define what timezone logs are in, using the TZ directive in &lt;CODE&gt;props.conf&lt;/CODE&gt;. More information here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/data/Applytimezoneoffsetstotimestamps"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/data/Applytimezoneoffsetstotimestamps&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you don't want to set that up but just want to be able to search on when the logs were actually indexed, you can use the &lt;CODE&gt;_indextime&lt;/CODE&gt; field that has this information. You could assign &lt;CODE&gt;_time&lt;/CODE&gt; to &lt;CODE&gt;_indextime&lt;/CODE&gt; to temporarily 'pretend' that it's the index time that constitutes the timestamp:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval _time=_indextime | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or you could do other stuff with the &lt;CODE&gt;_indextime&lt;/CODE&gt; field as you see fit. Note that this field is normally hidden due to its internal nature, so for instance doing &lt;CODE&gt;| table _indextime&lt;/CODE&gt; will not show anything. Using &lt;CODE&gt;eval&lt;/CODE&gt; you can make it visible.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval indextime=_indextime | table indextime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jun 2012 05:54:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83852#M17427</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-26T05:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to log the local time on the incoming logs ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83853#M17428</link>
      <description>&lt;P&gt;Thanks for the answer Ayn !!&lt;BR /&gt;
I have used "eval_time=_indextime" in savedsearches.conf of my app.&lt;/P&gt;

&lt;P&gt;search = sourcetype="access" | eval bandwidth=round(bytes_sent/1024,2)| eval _time=_indextime| timechart sum(bandwidth) &lt;/P&gt;

&lt;P&gt;It is working in case real time searches on my dashboard. But, when I am selecting last 15 minutes, or last 60 minutes etc. the chart is not showing any data.&lt;BR /&gt;
Thanks..&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83853#M17428</guid>
      <dc:creator>ranjyotiprakash</dc:creator>
      <dc:date>2020-09-28T11:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to log the local time on the incoming logs ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83854#M17429</link>
      <description>&lt;P&gt;You're welcome.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:30:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83854#M17429</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-27T07:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to log the local time on the incoming logs ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83855#M17430</link>
      <description>&lt;P&gt;...but I suspect you meant that last part as a question?&lt;/P&gt;

&lt;P&gt;The thing with setting &lt;CODE&gt;_time&lt;/CODE&gt; to &lt;CODE&gt;_indextime&lt;/CODE&gt; in your search is it happens AFTER the events have been extracted from the index. So if you search for events from the last 15 minutes, Splunk will first grab the events that have the ORIGINAL timestamp, before handing it over to the rest of the search pipeline. So even if you set &lt;CODE&gt;_time&lt;/CODE&gt; to something else after that, the events you will get first of all are the ones that match on the initial timestamp.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 07:33:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83855#M17430</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-27T07:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to log the local time on the incoming logs ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83856#M17431</link>
      <description>&lt;P&gt;In that case,I need to define the TZ directive in props.conf ??&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 08:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83856#M17431</guid>
      <dc:creator>ranjyotiprakash</dc:creator>
      <dc:date>2012-06-27T08:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to log the local time on the incoming logs ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83857#M17432</link>
      <description>&lt;P&gt;Yes, that's correct.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 08:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83857#M17432</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-27T08:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to log the local time on the incoming logs ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83858#M17433</link>
      <description>&lt;P&gt;one more question AYN..&lt;BR /&gt;
when we get data over UDP, in that case "no_appending_timestamp = false" appends timestamp and host to the incoming logs.&lt;BR /&gt;
Is there any attribute, which appends the timestamp &amp;amp; hosts to incoming logs, when we get data over TCP.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:59:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83858#M17433</guid>
      <dc:creator>ranjyotiprakash</dc:creator>
      <dc:date>2020-09-28T11:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to log the local time on the incoming logs ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83859#M17434</link>
      <description>&lt;P&gt;Possibly, I don't know right now. Either way that's not part of this question, so please open up a new question if you want help with that.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 09:10:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83859#M17434</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-27T09:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to log the local time on the incoming logs ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83860#M17435</link>
      <description>&lt;P&gt;Thanks Ayn.. I will open up a new question ..&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2012 09:13:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-log-the-local-time-on-the-incoming-logs/m-p/83860#M17435</guid>
      <dc:creator>ranjyotiprakash</dc:creator>
      <dc:date>2012-06-27T09:13:01Z</dc:date>
    </item>
  </channel>
</rss>

