<?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: Splunk recognizing Julian Date and Elapsed Seconds in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-recognizing-Julian-Date-and-Elapsed-Seconds/m-p/72711#M14827</link>
    <description>&lt;P&gt;I see the following post in a splunk forum back in 2006:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/support/forum:SplunkGeneral/55"&gt;http://www.splunk.com/support/forum:SplunkGeneral/55&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Tbe last comment is - :&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;3&lt;BR /&gt;
posted by: cfrln  |  posts&lt;BR /&gt;
date: February 7, 2006&lt;BR /&gt;
permalink&lt;BR /&gt;
We have the samples here at Splunk and will be resolving the bug in recognizing Julian dates in our next minor release. Thanks MaryAnn for raising the issue.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Anyone know if Splunk can translate Julian dates now and if so what the notation or TIME_FORMAT might be?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2011 21:12:47 GMT</pubDate>
    <dc:creator>twstanley</dc:creator>
    <dc:date>2011-09-09T21:12:47Z</dc:date>
    <item>
      <title>Splunk recognizing Julian Date and Elapsed Seconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-recognizing-Julian-Date-and-Elapsed-Seconds/m-p/72709#M14825</link>
      <description>&lt;P&gt;I am feeding a log event into Splunk that has a julian date and a time that consists of seconds since midnight:&lt;/P&gt;

&lt;PRE&gt;
2455814 44709 192.168.186.211 P19135 155018519 28632 0 ABCDE/NT RETRIEVE 32 99999&lt;/PRE&gt;

&lt;P&gt;The first value is the julian date, the second is the seconds since midnight. &lt;/P&gt;

&lt;P&gt;How can I configure Splunk to understand the date or timestamp in this case?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2011 18:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-recognizing-Julian-Date-and-Elapsed-Seconds/m-p/72709#M14825</guid>
      <dc:creator>maverick</dc:creator>
      <dc:date>2011-09-09T18:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk recognizing Julian Date and Elapsed Seconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-recognizing-Julian-Date-and-Elapsed-Seconds/m-p/72710#M14826</link>
      <description>&lt;P&gt;I'm afraid your only hope here would be if you were able to specify such exotic time annotations as "julian date" or "seconds since midnight" as a &lt;A href="http://stat.ethz.ch/R-manual/R-devel/library/base/html/strptime.html"&gt;strptime()&lt;/A&gt; function in TIME_FORMAT.&lt;/P&gt;

&lt;P&gt;And from what I can see, that's just not an available option. I would encourage you to &lt;A href="http://www.splunk.com/index.php/submit_issue"&gt;open an enhancement request&lt;/A&gt; if you would like this to be supported. Please make sure to include a log sample!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2011 21:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-recognizing-Julian-Date-and-Elapsed-Seconds/m-p/72710#M14826</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2011-09-09T21:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk recognizing Julian Date and Elapsed Seconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-recognizing-Julian-Date-and-Elapsed-Seconds/m-p/72711#M14827</link>
      <description>&lt;P&gt;I see the following post in a splunk forum back in 2006:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/support/forum:SplunkGeneral/55"&gt;http://www.splunk.com/support/forum:SplunkGeneral/55&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Tbe last comment is - :&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;3&lt;BR /&gt;
posted by: cfrln  |  posts&lt;BR /&gt;
date: February 7, 2006&lt;BR /&gt;
permalink&lt;BR /&gt;
We have the samples here at Splunk and will be resolving the bug in recognizing Julian dates in our next minor release. Thanks MaryAnn for raising the issue.&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Anyone know if Splunk can translate Julian dates now and if so what the notation or TIME_FORMAT might be?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2011 21:12:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-recognizing-Julian-Date-and-Elapsed-Seconds/m-p/72711#M14827</guid>
      <dc:creator>twstanley</dc:creator>
      <dc:date>2011-09-09T21:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk recognizing Julian Date and Elapsed Seconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-recognizing-Julian-Date-and-Elapsed-Seconds/m-p/72712#M14828</link>
      <description>&lt;P&gt;The closest thing I can think of that is supported in TIME_FORMAT is :&lt;BR /&gt;
&lt;CODE&gt;%j : The day number in the year (1-366)&lt;/CODE&gt;. I think the post you found refers to SPL-1866 for which the recognition of &lt;EM&gt;ordinal&lt;/EM&gt; dates (some combination of year and number of days elapsed since Jan 1st : something like %y%j in strptime annotation) was implemented in Splunk. There appears to be occasional confusion between the two concepts.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2011 21:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-recognizing-Julian-Date-and-Elapsed-Seconds/m-p/72712#M14828</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2011-09-09T21:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk recognizing Julian Date and Elapsed Seconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-recognizing-Julian-Date-and-Elapsed-Seconds/m-p/72713#M14829</link>
      <description>&lt;P&gt;Someone pointed out to me that the number given in my example is the Julian Date Number (JDN), not the Julian Date. There is a slight difference between the two as the JDN truncates the effective date and the variant is set to noon GMT. There is a specific formula to express this in UNIX time. Unfortunately, that part requires math and I don't believe there is a way, currently, to use a transform to modify the indexing date field on the fly so until the product is enhanced to handle this case, it will not be possible to recognize an MJD automatically.&lt;/P&gt;

&lt;P&gt;However, it CAN be done at search time using the following formula: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
UNIX Time = {&lt;BR /&gt;
(Julian Date Number &amp;lt;a field extraction&amp;gt; – Unix Epoch &amp;lt;expressed in Julian Date Number notation&amp;gt;)&lt;BR /&gt;
* seconds in a day&lt;BR /&gt;
– Julian Date Number GMT Offset &amp;lt;expressed in seconds&amp;gt; }&lt;BR /&gt;
+ Number of seconds since midnight &amp;lt;a field extraction&amp;gt;&lt;BR /&gt;
 &lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Here are the extractions:&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
EXTRACT-jdn = (?i)^(?P&lt;JDN&gt;[^ ]+)&lt;BR /&gt;
EXTRACT-ssm = (?i)^[^ ]* (?P&lt;SSM&gt;[^ ]+)&lt;/SSM&gt;&lt;/JDN&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;And here is a sample search: &lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
sourcetype="test" | eval uepoch = ((jdn - 2440587.5) * (60 * 60 * 24)) - (60 * 60 * 12) + ssm | eval logdate = strftime(uepoch,"%c %Z")&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2011 13:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-recognizing-Julian-Date-and-Elapsed-Seconds/m-p/72713#M14829</guid>
      <dc:creator>maverick</dc:creator>
      <dc:date>2011-09-12T13:06:00Z</dc:date>
    </item>
  </channel>
</rss>

