<?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 not getting milliseconds in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428162#M75017</link>
    <description>&lt;P&gt;Have you restarted Splunk after making the adjustments?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2018 09:40:37 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2018-07-06T09:40:37Z</dc:date>
    <item>
      <title>TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428149#M75004</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I do have a log which does look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jul  6 09:31:18.729: %SYS-5-CONFIG_I: Configured from console by username on vty1 (ip-address)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This data is received by syslog, but for any reason the internal _time variable does not contain the milliseconds, in this example .729 the _time variable in splunk does look like this: 2018-07-06T09:31:18.000+02:00&lt;/P&gt;

&lt;P&gt;So I did some research and started to edit the props.conf for this sourcetyp&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=^
TIME_FORMAT=%b %d %H:%M:%S.%3N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But for any reason this did not impact the _time variable in splunk, can someone may tell me what I do wrong here?&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:05:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428149#M75004</guid>
      <dc:creator>MERBAG</dc:creator>
      <dc:date>2018-07-06T08:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428150#M75005</link>
      <description>&lt;P&gt;Since the day of month is preceded with a space when single digit instead of 06, you need to use &lt;CODE&gt;%e&lt;/CODE&gt; instead of &lt;CODE&gt;%d&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428150#M75005</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-07-06T08:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428151#M75006</link>
      <description>&lt;P&gt;Hello @MERBAG,&lt;/P&gt;

&lt;P&gt;it seems that the fomat for the millisesonds is not OK.&lt;/P&gt;

&lt;P&gt;According to the documentation (&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/Commontimeformatvariables"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.1/SearchReference/Commontimeformatvariables&lt;/A&gt;),&lt;BR /&gt;
replace &lt;CODE&gt;%3N&lt;/CODE&gt;with &lt;CODE&gt;%3Q&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428151#M75006</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2018-07-06T08:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428152#M75007</link>
      <description>&lt;P&gt;I've always used %3N for that. Documentation is a bit confusing in that sense, I don't understand the difference between %xN and %xQ:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;%N  Subseconds with width. (%3N = milliseconds, %6N = microseconds, %9N = nanoseconds)
 %Q The subsecond component of 2017-11-30 23:59:59.999 UTC. %3Q = milliseconds, with values of 000-999. %6Q = microseconds, with values of 000000-999999. %9Q = nanoseconds, with values of 000000000-999999999.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428152#M75007</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-07-06T08:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428153#M75008</link>
      <description>&lt;P&gt;Thanks for the quick feedback. I just did the change you said, but unfortunatly that didnt help - the _time does still look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-07-06T10:25:34.000+02:00   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The props.conf now looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=^
TIME_FORMAT=%b %e %H:%M:%S.%3N
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428153#M75008</guid>
      <dc:creator>MERBAG</dc:creator>
      <dc:date>2018-07-06T08:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428154#M75009</link>
      <description>&lt;P&gt;Well, that's good to know. I always used %Q up to now, and it always worked so far. May be worth a try&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:29:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428154#M75009</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2018-07-06T08:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428155#M75010</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;also just tried that, still did not change anything, time in the log does look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jul 6 10:30:21.987
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the _time variable now contains this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-07-06T10:30:22.000+02:00
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428155#M75010</guid>
      <dc:creator>MERBAG</dc:creator>
      <dc:date>2018-07-06T08:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428156#M75011</link>
      <description>&lt;P&gt;From how I read the docs they would be the same anyway, so not surprising %Q worked for you. Why they have 2 ways of doing the same is beyond me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:43:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428156#M75011</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-07-06T08:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428157#M75012</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval _time=strptime("Jul  6 09:31:18.729: %SYS-5-CONFIG_I: Configured from console by username on vty1 (ip-address)","%b %e %H:%M:%S.%3Q")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;works like a charm. Are you sure you are modifying the right props.conf file? &lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:44:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428157#M75012</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2018-07-06T08:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428158#M75013</link>
      <description>&lt;P&gt;In that case, issue may be with how you've set up your props.conf and where you deployed it.&lt;/P&gt;

&lt;P&gt;Can you show a bit more of the config files used for this data input? You set the time config based on sourcetype, right? Is that sourcetype determined in inputs.conf, or is it overridden using props and transforms?&lt;BR /&gt;
What does your architecture look like and where in the architecture did you deploy the time config props.conf?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:44:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428158#M75013</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-07-06T08:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428159#M75014</link>
      <description>&lt;P&gt;@poete , @FrankVI&lt;BR /&gt;
Since there came up to similar questions, I want to explain a bit more how the setup does look like. To be honest it is the first time I am doing this, so my answer to the question "do you modify the right props.conf file?" is: I think so, but I do not know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;We did  create a new app, in the app the inputs.conf does look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://515]
connection_host = dns
index = cisco
sourcetype = switch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in the same app the props.conf does look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[switch]
category = Network &amp;amp; Security
TIME_PREFIX=^
TIME_FORMAT=%b %e %H:%M:%S.%3Q
pulldown_type = 1
EXTRACT-ciscoaudit = ^(?:[^ \n]* ){4}(?P&amp;lt;hostname&amp;gt;[^ ]+)(?:[^ \n]* ){2}(?P&amp;lt;iostime&amp;gt;\w+\s+\d+\s+\d+:\d+:\d+\.\d+)[^%\n]*%(?P&amp;lt;facility&amp;gt;\w+)\-(?P&amp;lt;severity&amp;gt;[^\-]+)\-(?P&amp;lt;mnemonic&amp;gt;[^:]+):\s+\w+:(?P&amp;lt;user&amp;gt;[a-z]+)[^:\n]*:(?P&amp;lt;command&amp;gt;.+)
EXTRACT-cisco = ^(?:[^ \n]* ){4}(?P&amp;lt;hostname&amp;gt;[^ ]+)[^:\n]*:\s+(?P&amp;lt;iostime&amp;gt;\w+\s+\d+\s+\d+:\d+:\d+\.\d+)[^%\n]*%(?P&amp;lt;facility&amp;gt;\w+)\-(?P&amp;lt;severity&amp;gt;[^\-]+)\-(?P&amp;lt;mnemonic&amp;gt;\w+)[^ \n]* (?P&amp;lt;message&amp;gt;.+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also already tried to remove the EXTRACT-* part from the props.conf since I though the may have any negativ impact, but that also did not change anything. &lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 09:00:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428159#M75014</guid>
      <dc:creator>MERBAG</dc:creator>
      <dc:date>2018-07-06T09:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428160#M75015</link>
      <description>&lt;P&gt;@MERBAG,&lt;/P&gt;

&lt;P&gt;depending if you are running a single instance of Splunk, or an instance with separate indexer and search head, the steps for the props.conf to be taken into account are different.&lt;/P&gt;

&lt;P&gt;If you are running on a single instance, in what directory is located the props.conf file you modified?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 09:12:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428160#M75015</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2018-07-06T09:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428161#M75016</link>
      <description>&lt;P&gt;It is a single instance, the directory for the inputs and props file I posted here is&lt;/P&gt;

&lt;P&gt;C:\Program Files\Splunk\etc\apps\merbag_it\local&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 09:15:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428161#M75016</guid>
      <dc:creator>MERBAG</dc:creator>
      <dc:date>2018-07-06T09:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428162#M75017</link>
      <description>&lt;P&gt;Have you restarted Splunk after making the adjustments?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 09:40:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428162#M75017</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-07-06T09:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428163#M75018</link>
      <description>&lt;P&gt;yes, after every change I did a restart uf splunk and generated new logs to test&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 10:41:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428163#M75018</guid>
      <dc:creator>MERBAG</dc:creator>
      <dc:date>2018-07-06T10:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: TIME not getting milliseconds</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428164#M75019</link>
      <description>&lt;P&gt;Does someone have any other ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 06:18:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TIME-not-getting-milliseconds/m-p/428164#M75019</guid>
      <dc:creator>MERBAG</dc:creator>
      <dc:date>2018-07-09T06:18:21Z</dc:date>
    </item>
  </channel>
</rss>

