<?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 How to setup TIME_FORMAT with time and date in separate locations ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-setup-TIME-FORMAT-with-time-and-date-in-separate/m-p/288706#M55160</link>
    <description>&lt;P&gt;I get trouble to setup TIME_FORMAT= ????, the documents help only if Date and time is in one line.&lt;/P&gt;

&lt;P&gt;In my case : The log file is generateted from 00:00 to 23:59  date is 032318 in Filename.&lt;BR /&gt;
                      on time format i get for each line in this log file timestamp but not date !&lt;BR /&gt;
             I need methode to move the Date from the filename to the TIME_FORMAT extraction for index all line with date and time.&lt;BR /&gt;
  sample :   filesname : xxxx.020918_00004.log   here we have the date only&lt;BR /&gt;
                    The have starting line like :  13:00:11.588 [5636.5636] ......   here are the time stamps  from 00:00 to 23:59 for each day&lt;BR /&gt;
                                                                      There no date in the file!&lt;BR /&gt;
  how do need to define the TIME_FORMATE in props.conf for this case ?&lt;BR /&gt;
                                                   TIME_FORMAT=  %H:%M:%S     ..... missing the DATE ? for correct indexing&lt;BR /&gt;
 this is a question about application NETbackup from Veritas and his logs&lt;BR /&gt;
 on files in /usr/openv/netbackup/logs  &amp;gt;&amp;gt;&amp;gt; date in logfilename &amp;gt;&amp;gt; time in logfile&lt;BR /&gt;
 on files in /usr/openv/logs &amp;gt;&amp;gt; we have unixtime time and date in log file this no proplem !&lt;/P&gt;

&lt;P&gt;Thank in advanced,&lt;/P&gt;

&lt;P&gt;Darius&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:41:04 GMT</pubDate>
    <dc:creator>winicd</dc:creator>
    <dc:date>2020-09-29T18:41:04Z</dc:date>
    <item>
      <title>How to setup TIME_FORMAT with time and date in separate locations ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-setup-TIME-FORMAT-with-time-and-date-in-separate/m-p/288706#M55160</link>
      <description>&lt;P&gt;I get trouble to setup TIME_FORMAT= ????, the documents help only if Date and time is in one line.&lt;/P&gt;

&lt;P&gt;In my case : The log file is generateted from 00:00 to 23:59  date is 032318 in Filename.&lt;BR /&gt;
                      on time format i get for each line in this log file timestamp but not date !&lt;BR /&gt;
             I need methode to move the Date from the filename to the TIME_FORMAT extraction for index all line with date and time.&lt;BR /&gt;
  sample :   filesname : xxxx.020918_00004.log   here we have the date only&lt;BR /&gt;
                    The have starting line like :  13:00:11.588 [5636.5636] ......   here are the time stamps  from 00:00 to 23:59 for each day&lt;BR /&gt;
                                                                      There no date in the file!&lt;BR /&gt;
  how do need to define the TIME_FORMATE in props.conf for this case ?&lt;BR /&gt;
                                                   TIME_FORMAT=  %H:%M:%S     ..... missing the DATE ? for correct indexing&lt;BR /&gt;
 this is a question about application NETbackup from Veritas and his logs&lt;BR /&gt;
 on files in /usr/openv/netbackup/logs  &amp;gt;&amp;gt;&amp;gt; date in logfilename &amp;gt;&amp;gt; time in logfile&lt;BR /&gt;
 on files in /usr/openv/logs &amp;gt;&amp;gt; we have unixtime time and date in log file this no proplem !&lt;/P&gt;

&lt;P&gt;Thank in advanced,&lt;/P&gt;

&lt;P&gt;Darius&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-setup-TIME-FORMAT-with-time-and-date-in-separate/m-p/288706#M55160</guid>
      <dc:creator>winicd</dc:creator>
      <dc:date>2020-09-29T18:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup TIME_FORMAT with time and date in separate locations ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-setup-TIME-FORMAT-with-time-and-date-in-separate/m-p/288707#M55161</link>
      <description>&lt;P&gt;If no events in a source have a date, Splunk software tries to find a date in the source name or file name. Time of day is not identified in filenames. (This requires that the events have a time, even though they don't have a date.)&lt;BR /&gt;
For file sources, if no date can be identified in the file name, Splunk software uses the file modification time.&lt;BR /&gt;
As a last resort, Splunk software sets the timestamp to the current system time when indexing each event.&lt;/P&gt;

&lt;P&gt;In general I would just define TIME_FORMAT as H:M:S.%3N in this case.&lt;BR /&gt;
What happens when you try it with a sample?&lt;BR /&gt;
I have done a few times and every time splunk was able to pick up the date from the file name.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Mar 2018 13:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-setup-TIME-FORMAT-with-time-and-date-in-separate/m-p/288707#M55161</guid>
      <dc:creator>Azeemering</dc:creator>
      <dc:date>2018-03-25T13:59:39Z</dc:date>
    </item>
  </channel>
</rss>

