<?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 zone in time format in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391669#M69992</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Please use below config in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %d/%b/%Y:%H:%M:%S %z
TIME_PREFIX = \[
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If above config will not work then please provide some sample data with full events (Mask any sensitive data)&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 11:01:36 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2019-04-05T11:01:36Z</dc:date>
    <item>
      <title>time zone in time format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391666#M69989</link>
      <description>&lt;P&gt;Hi my time in the log file is something like this. &lt;BR /&gt;
How to write the regex for timestamp format. &lt;BR /&gt;
As am getting error failed to parse timestamp&lt;/P&gt;

&lt;P&gt;[29/Mar/2019:06:04:57 +0530] &lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 09:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391666#M69989</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2019-04-05T09:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: time zone in time format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391667#M69990</link>
      <description>&lt;P&gt;Do you mean you need setting/parameter on Indexer in props.conf to identify timestamp correctly from raw data ?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 10:52:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391667#M69990</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-04-05T10:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: time zone in time format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391668#M69991</link>
      <description>&lt;P&gt;yes @harsmarvania57 &lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 10:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391668#M69991</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2019-04-05T10:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: time zone in time format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391669#M69992</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Please use below config in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %d/%b/%Y:%H:%M:%S %z
TIME_PREFIX = \[
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If above config will not work then please provide some sample data with full events (Mask any sensitive data)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 11:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391669#M69992</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-04-05T11:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: time zone in time format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391670#M69993</link>
      <description>&lt;P&gt;Hi @harsmarvania57 &lt;/P&gt;

&lt;P&gt;I tried the same but not working...&lt;/P&gt;

&lt;P&gt;For reference my access.log file looks like this. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"time_stamp" "auth_user" src_ip status_code "req_line" "categories" "rep_level" "media_type" bytes_to_client bytes_from_client "user_agent" "virus_name" "block_res" "application_name"
 [29/Mar/2019:06:04:57 +0530] "" 176.6.60.56 403 "GET &lt;A href="http://abcd.com/HTTP/1.1&amp;quot;" target="test_blank"&gt;http://abcd.com/HTTP/1.1"&lt;/A&gt;; "Software/Hardware" "Minimal Risk" "" 8811 237 "Microsoft-CryptoAPI/6.1" "" "0" ""
 [29/Mar/2019:06:04:57 +0530] "asharma072315" 176.6.50.55 200 "POST &lt;A href="https://obdefw.com/HTTP/1.1&amp;quot;" target="test_blank"&gt;https://obdefw.com/HTTP/1.1"&lt;/A&gt;; "Web Mail" "Minimal Risk" "" 1208 7687 "Microsoft Office/16.0 (Windows NT 10.0; Microsoft Outlook 16.0.9126; Pro)" "" "0" ""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to add props and transforms.conf for the same file and create and new source_type i think. As i dont find any generic sourcetype which supports this kind of log file. &lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 11:46:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391670#M69993</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2019-04-05T11:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: time zone in time format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391671#M69994</link>
      <description>&lt;P&gt;If you have timestamp &lt;CODE&gt;[29/Mar/2019:06:04:57 +0530]&lt;/CODE&gt; in above raw data enclosed with &lt;CODE&gt;"&lt;/CODE&gt; like this &lt;CODE&gt;"[29/Mar/2019:06:04:57 +0530]"&lt;/CODE&gt; then you can use below configuration. Are there any chance to encoded timestamp with &lt;CODE&gt;"&lt;/CODE&gt; ?&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
FIELD_DELIMITER = space
TIMESTAMP_FIELDS = time_stamp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Apr 2019 11:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/time-zone-in-time-format/m-p/391671#M69994</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-04-05T11:57:43Z</dc:date>
    </item>
  </channel>
</rss>

