<?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 Index the timestamp present in log file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Index-the-timestamp-present-in-log-file/m-p/108680#M22847</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;

&lt;P&gt;I got a question regarding the field indexed by splunk when an event is received on splunk server.&lt;BR /&gt;
I would like to index and use the timestamp present into the logs I get from multiple sources.&lt;BR /&gt;
All those logs are stored into the default DB.&lt;/P&gt;

&lt;P&gt;There's 3 kind of timestamps present in the 3 diffrents logs source which look like this :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;2012-07-25T08:07:30&lt;/LI&gt;
&lt;LI&gt;1343250669001 =&amp;gt; This is epoch time&lt;/LI&gt;
&lt;LI&gt;Jul 23 12:09:43&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;3 eventtype has been created for each.&lt;/P&gt;

&lt;P&gt;Splunk is currently indexing these logs at the time it were received on the splunk server.&lt;BR /&gt;
The purpose would be to do search on splunk from these events using the time present in the logs file.&lt;/P&gt;

&lt;P&gt;I tried to follow the instrctions present in this page but it doesen't seems to work, i'm pretty sure i'm doing something wrong.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.3/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Here's the first entry i made on the props.conf file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[EVENT_Spyware]
TIME_PREFIX = (?i) .*?="(?P&amp;lt;Spyware&amp;gt;\d+\-\d+\-\d+\w+:\d+:\d+)\w+"
TIME_FORMAT = %Y-%m-%dT%H:%M:%S
TZ = Europe/Paris
TRANSFORMS-Virus = Spyware
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could someone help please ?&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jul 2012 08:55:46 GMT</pubDate>
    <dc:creator>rbw78</dc:creator>
    <dc:date>2012-07-26T08:55:46Z</dc:date>
    <item>
      <title>Index the timestamp present in log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-the-timestamp-present-in-log-file/m-p/108680#M22847</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;

&lt;P&gt;I got a question regarding the field indexed by splunk when an event is received on splunk server.&lt;BR /&gt;
I would like to index and use the timestamp present into the logs I get from multiple sources.&lt;BR /&gt;
All those logs are stored into the default DB.&lt;/P&gt;

&lt;P&gt;There's 3 kind of timestamps present in the 3 diffrents logs source which look like this :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;2012-07-25T08:07:30&lt;/LI&gt;
&lt;LI&gt;1343250669001 =&amp;gt; This is epoch time&lt;/LI&gt;
&lt;LI&gt;Jul 23 12:09:43&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;3 eventtype has been created for each.&lt;/P&gt;

&lt;P&gt;Splunk is currently indexing these logs at the time it were received on the splunk server.&lt;BR /&gt;
The purpose would be to do search on splunk from these events using the time present in the logs file.&lt;/P&gt;

&lt;P&gt;I tried to follow the instrctions present in this page but it doesen't seems to work, i'm pretty sure i'm doing something wrong.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.3/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.3/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Here's the first entry i made on the props.conf file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[EVENT_Spyware]
TIME_PREFIX = (?i) .*?="(?P&amp;lt;Spyware&amp;gt;\d+\-\d+\-\d+\w+:\d+:\d+)\w+"
TIME_FORMAT = %Y-%m-%dT%H:%M:%S
TZ = Europe/Paris
TRANSFORMS-Virus = Spyware
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could someone help please ?&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 08:55:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-the-timestamp-present-in-log-file/m-p/108680#M22847</guid>
      <dc:creator>rbw78</dc:creator>
      <dc:date>2012-07-26T08:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Index the timestamp present in log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-the-timestamp-present-in-log-file/m-p/108681#M22848</link>
      <description>&lt;P&gt;Is &lt;CODE&gt;EVENT_Spyware&lt;/CODE&gt; the &lt;CODE&gt;sourcetype&lt;/CODE&gt; of the data?  Can you update your question with a sample event?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 12:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-the-timestamp-present-in-log-file/m-p/108681#M22848</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-07-26T12:22:55Z</dc:date>
    </item>
  </channel>
</rss>

