<?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: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174159#M49960</link>
    <description>&lt;P&gt;You need to tell Splunk to use the date in the events to timestamp the events  like this in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=^
TIME_FORMAT=%H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should make events that have the same time to have the same timestamp, which I believe is what you would like.  Splunk may not like that this does not specify a date.   Is the date encoded in the log filename?  If so, we can use &lt;CODE&gt;datetime.xml&lt;/CODE&gt; to access it.&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2015 15:05:51 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-05-07T15:05:51Z</dc:date>
    <item>
      <title>Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174156#M49957</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
 I have log file which create every 1 hr so they not have date field but splunk Automatically provide different date to every event&lt;BR /&gt;
So when i use time search betwwen some specific time. The search fail due to different date auto provide by splunk.&lt;BR /&gt;
I need to give one date to every event or remove date field so i able to search particular time.&lt;/P&gt;

&lt;P&gt;My log file demo:&lt;BR /&gt;
07:33:41.571|0071540|1|49| |O|Created send socket [447.0.0.1:1618]&lt;BR /&gt;
07:33:41.571|0071540|1|49| |O|Sending 319 byte request to Handler&lt;/P&gt;

&lt;P&gt;Please give any solution&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 12:45:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174156#M49957</guid>
      <dc:creator>nitesh218ss</dc:creator>
      <dc:date>2015-05-07T12:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174157#M49958</link>
      <description>&lt;P&gt;What is the search that is failing?&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 12:49:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174157#M49958</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-05-07T12:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174158#M49959</link>
      <description>&lt;P&gt;you can use _indextime in the search query to retrieve &lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 12:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174158#M49959</guid>
      <dc:creator>srinathd</dc:creator>
      <dc:date>2015-05-07T12:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174159#M49960</link>
      <description>&lt;P&gt;You need to tell Splunk to use the date in the events to timestamp the events  like this in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=^
TIME_FORMAT=%H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should make events that have the same time to have the same timestamp, which I believe is what you would like.  Splunk may not like that this does not specify a date.   Is the date encoded in the log filename?  If so, we can use &lt;CODE&gt;datetime.xml&lt;/CODE&gt; to access it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2015 15:05:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174159#M49960</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-07T15:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174160#M49961</link>
      <description>&lt;P&gt;when i select time like 7:10:00.000 to 7:30:00.000 then they not show result because the date part in not same date which auto provided by splunk&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2015 04:49:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174160#M49961</guid>
      <dc:creator>nitesh218ss</dc:creator>
      <dc:date>2015-05-08T04:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174161#M49962</link>
      <description>&lt;P&gt;hi sir,&lt;BR /&gt;
I use &lt;BR /&gt;
TIME_PREFIX=^&lt;BR /&gt;
 TIME_FORMAT=%H:%M:%S.%3N but first time they show current date but after some time date&lt;BR /&gt;
again differ &lt;BR /&gt;
i try use TIME_PREFIX=2015-05-09&lt;BR /&gt;
but when search they show date 2015-05-011&lt;BR /&gt;
means they not work any other way to set date&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174161#M49962</guid>
      <dc:creator>nitesh218ss</dc:creator>
      <dc:date>2020-09-28T19:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174162#M49963</link>
      <description>&lt;P&gt;TIME_PREFIX does not tell Splunk to add this prefix to your timestamp in each event, it is a REGEX applied to the event to tell Splunk where to have the parser begin looking for the timestamp inside each event.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2015 13:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174162#M49963</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-11T13:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174163#M49964</link>
      <description>&lt;P&gt;but inside event date field not present  only time field present&lt;BR /&gt;
.so i want declarer my own date at a time of indexing or time searching but i don't now how i do this?&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2015 17:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174163#M49964</guid>
      <dc:creator>nitesh218ss</dc:creator>
      <dc:date>2015-05-11T17:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174164#M49965</link>
      <description>&lt;P&gt;Test what I gave you and see what Splunk does when you let it figure out the date without you telling Splunk where to find it.  If you don't like what Splunk does by default, then use &lt;CODE&gt;datetime.xml&lt;/CODE&gt; to hardcode something or pull the date from somewhere else (filename, modtime, etc.).&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2015 18:14:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174164#M49965</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-11T18:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174165#M49966</link>
      <description>&lt;P&gt;But if i change in datetime.xml then they effect other log also so what i do for single log?&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 05:36:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174165#M49966</guid>
      <dc:creator>nitesh218ss</dc:creator>
      <dc:date>2015-05-12T05:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174166#M49967</link>
      <description>&lt;P&gt;i create folder with date so now i try to set date but i try with datetime.xml but fail&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; C:\Users\T_NiteshS1\Documents\My Received Files\20150511\log2.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you see before log2.log you get folder 20150511 This is date&lt;BR /&gt;
if you expend 20150511 this yyyymmdd&lt;/P&gt;

&lt;P&gt;i try in xml is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;amp;lt;define name="_masheddate2" extract="month, day, year"&amp;amp;gt;
    &amp;amp;lt;text&amp;amp;gt;&amp;amp;lt;![CDATA[(?:^|C:\Program Files\Splunk\etc\apps\search::).*?(20\d{2})(\d{2})(\d{2})]]&amp;amp;gt;&amp;amp;lt;/text&amp;amp;gt;
&amp;amp;lt;/define&amp;amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 May 2015 07:44:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174166#M49967</guid>
      <dc:creator>nitesh218ss</dc:creator>
      <dc:date>2015-05-12T07:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174167#M49968</link>
      <description>&lt;P&gt;You do not have to use the global datetime.xml; create one inside your app that you reference directly that has only your configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 14:50:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174167#M49968</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-12T14:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174168#M49969</link>
      <description>&lt;P&gt;Try this for your &lt;CODE&gt;datetime.xml&lt;/CODE&gt; (hopefully markdown will not mangle the text):&lt;BR /&gt;
&amp;lt;datetime&amp;gt;&lt;BR /&gt;
&amp;lt;define name="_dateFromDirectorySegment" extract="year, month, day"&amp;gt;&lt;BR /&gt;
   &amp;lt;text&amp;gt;&amp;lt;![CDATA[source::.*?\(\d{4})(\d{2})(\d{2})\]]&amp;gt;&amp;lt;/text&amp;gt;&lt;BR /&gt;
&amp;lt;/define&amp;gt;&lt;BR /&gt;
&amp;lt;define name="_timeFromEventData" extract="hour, minute, second, subsecond"&amp;gt;&lt;BR /&gt;
   &amp;lt;text&amp;gt;&amp;lt;![CDATA[^(\d{2}):(\d{2}:(\d{2}.(\d{3}]]&amp;gt;&amp;lt;/text&amp;gt;&lt;BR /&gt;
&amp;lt;/define&amp;gt;&lt;BR /&gt;
&amp;lt;timePatterns&amp;gt;&lt;BR /&gt;
   &amp;lt;use name="_timeFromEventData"/&amp;gt;&lt;BR /&gt;
&amp;lt;/timePatterns&amp;gt;&lt;BR /&gt;
&amp;lt;datePatterns&amp;gt;&lt;BR /&gt;
   &amp;lt;use name="_dateFromDirectorySegment"/&amp;gt;&lt;BR /&gt;
&amp;lt;/datePatterns&amp;gt;&lt;BR /&gt;
&amp;lt;/datetime&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174168#M49969</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-09-28T19:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174169#M49970</link>
      <description>&lt;P&gt;Do note that markdown removed all the backslashes from in from of my "(d{2})" an "(d{4})" strings, so you will have to put them back.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 16:35:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174169#M49970</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-12T16:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174170#M49971</link>
      <description>&lt;P&gt;ya i create new datetime&lt;BR /&gt;
but today i try with file path at place of source in satetime.xml&lt;BR /&gt;
i try this in office tomorrow &lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 19:17:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174170#M49971</guid>
      <dc:creator>nitesh218ss</dc:creator>
      <dc:date>2015-05-12T19:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Log file not have any date field   but splunk auto give different different date to event i need remove date in _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174171#M49972</link>
      <description>&lt;P&gt;thanks sir&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 19:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Log-file-not-have-any-date-field-but-splunk-auto-give-different/m-p/174171#M49972</guid>
      <dc:creator>nitesh218ss</dc:creator>
      <dc:date>2015-05-12T19:17:45Z</dc:date>
    </item>
  </channel>
</rss>

