<?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: Time format is not working as per props.conf file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-is-not-working-as-per-props-conf-file/m-p/423955#M74451</link>
    <description>&lt;P&gt;The &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; setting is for when you parse event characters to pull out timestamps, which you are NOT doing so it is not used.&lt;/P&gt;

&lt;P&gt;There is only 1 way to change how timestamps appear generally, that is to use a different localization which is part of your URL.  Most of the time this is &lt;CODE&gt;en-US&lt;/CODE&gt; but try &lt;CODE&gt;en-GB&lt;/CODE&gt; for example, to see how it changes.  In any case, you have FULL CONTROL of this on a search-by-search basis.  Just add this to the bottom/middle of any search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | fieldformat _time=strftime(_time, "%Y-%m-%d %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 16 Jun 2019 22:42:58 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-06-16T22:42:58Z</dc:date>
    <item>
      <title>Time format is not working as per props.conf file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-is-not-working-as-per-props-conf-file/m-p/423952#M74448</link>
      <description>&lt;P&gt;I want to ingest data at current time ,for that we are using &lt;STRONG&gt;props.conf&lt;/STRONG&gt; file ,the configuration for which is &lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
DATETIME_CONFIG =CURRENT&lt;BR /&gt;
TIME_FORMAT =%Y-%m-%d %H:%M:%S&lt;/P&gt;

&lt;P&gt;I am getting current time properly but &lt;STRONG&gt;TIME FORMAT&lt;/STRONG&gt; is not working.&lt;/P&gt;

&lt;P&gt;I don't know what is the issue ,please help me to resolve this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-format-is-not-working-as-per-props-conf-file/m-p/423952#M74448</guid>
      <dc:creator>ajitshukla61116</dc:creator>
      <dc:date>2020-09-30T00:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Time format is not working as per props.conf file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-is-not-working-as-per-props-conf-file/m-p/423953#M74449</link>
      <description>&lt;P&gt;&lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; applies to parsing timestamp strings in events.  You are not parsing timestamps.&lt;/P&gt;

&lt;P&gt;If you want to change how timestamps are presented to users, try the &lt;CODE&gt;strftime&lt;/CODE&gt; function.  For example, &lt;CODE&gt;... | eval time=strftime(_time, "%Y-%m-%d %H:%M:%S") | table time ...&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2019 12:11:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-format-is-not-working-as-per-props-conf-file/m-p/423953#M74449</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-06-15T12:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Time format is not working as per props.conf file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-is-not-working-as-per-props-conf-file/m-p/423954#M74450</link>
      <description>&lt;P&gt;Hello @ajitshukla,&lt;BR /&gt;
Timestamp in Splunk stored in &lt;STRONG&gt;epoch format (interger)&lt;/STRONG&gt; not in any string format so here  &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; will not be used as you have added DATETIME_CONFIG to CURRENT.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 15:59:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-format-is-not-working-as-per-props-conf-file/m-p/423954#M74450</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-16T15:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Time format is not working as per props.conf file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-is-not-working-as-per-props-conf-file/m-p/423955#M74451</link>
      <description>&lt;P&gt;The &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; setting is for when you parse event characters to pull out timestamps, which you are NOT doing so it is not used.&lt;/P&gt;

&lt;P&gt;There is only 1 way to change how timestamps appear generally, that is to use a different localization which is part of your URL.  Most of the time this is &lt;CODE&gt;en-US&lt;/CODE&gt; but try &lt;CODE&gt;en-GB&lt;/CODE&gt; for example, to see how it changes.  In any case, you have FULL CONTROL of this on a search-by-search basis.  Just add this to the bottom/middle of any search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | fieldformat _time=strftime(_time, "%Y-%m-%d %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Jun 2019 22:42:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-format-is-not-working-as-per-props-conf-file/m-p/423955#M74451</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-06-16T22:42:58Z</dc:date>
    </item>
  </channel>
</rss>

