<?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: How to configure props.conf to identify and convert my sample time format string for sourcetype=nix-all-logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-identify-and-convert-my-sample/m-p/126483#M26038</link>
    <description>&lt;P&gt;It works now, I used old configuration from your first post...&lt;/P&gt;

&lt;P&gt;Nikola &lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2015 12:41:09 GMT</pubDate>
    <dc:creator>nikolab</dc:creator>
    <dc:date>2015-04-07T12:41:09Z</dc:date>
    <item>
      <title>How to configure props.conf to identify and convert my sample time format string for sourcetype=nix-all-logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-identify-and-convert-my-sample/m-p/126479#M26034</link>
      <description>&lt;P&gt;Hi there..&lt;/P&gt;

&lt;P&gt;I have a big problem with props.conf. I have logs from a server with time format like this..&lt;BR /&gt;
0402 220121.414712...this means MMDD HHMMSS.QQQQQQ&lt;BR /&gt;
Need help with Regex for props.conf, respectively I need to convert this string into time.&lt;/P&gt;

&lt;P&gt;thanks for any help&lt;/P&gt;

&lt;P&gt;Nikola &lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 08:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-identify-and-convert-my-sample/m-p/126479#M26034</guid>
      <dc:creator>nikolab</dc:creator>
      <dc:date>2015-04-03T08:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf to identify and convert my sample time format string for sourcetype=nix-all-logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-identify-and-convert-my-sample/m-p/126480#M26035</link>
      <description>&lt;P&gt;Hi Nikola,&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/HowSplunkextractstimestamps"&gt;Splunk can often identify timestamps on its own&lt;/A&gt;. Yet we can improve its performance by &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/Configuretimestamprecognition"&gt;telling Splunk exactly where to find the timestamp (and its format)&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;In some cases, like the one in your question, Splunk does not recognize the timestamp. Still, we can easily &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Data/HowSplunkextractstimestamps"&gt;instruct Splunk what timestamp to expect&lt;/A&gt; using &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Commontimeformatvariables"&gt;strptime notation&lt;/A&gt;. Bonus: We can also use that notation to format the timestamp as we'd like to see it at search time. &lt;/P&gt;

&lt;P&gt;Here is a sample props.conf entry you could use to do all of those things (I'm making the assumption the events start with &lt;CODE&gt;0402 220121.414712&lt;/CODE&gt; and &lt;CODE&gt;sourcetype=nix-all-logs&lt;/CODE&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[nix-all-logs]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)\d{4}\s\d{6}\.\d{6}
TIME_PREFIX=^
MAX_TIMESTAMP_LOOKAHEAD=20
TIME_FORMAT=%m%d %H%M%S.%6N
EVAL-timestamp=strftime(_time,"%Y-%m-%d %H:%M:%S.%6N")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Apr 2015 12:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-identify-and-convert-my-sample/m-p/126480#M26035</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2015-04-03T12:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf to identify and convert my sample time format string for sourcetype=nix-all-logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-identify-and-convert-my-sample/m-p/126481#M26036</link>
      <description>&lt;P&gt;bwooden thank you for your answer and effort..&lt;BR /&gt;
This was a problem for me..I can do it in search but with props there was a problem..&lt;BR /&gt;
I will try this on next week..have a nice day&lt;/P&gt;

&lt;P&gt;nikola&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2015 13:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-identify-and-convert-my-sample/m-p/126481#M26036</guid>
      <dc:creator>nikolab</dc:creator>
      <dc:date>2015-04-04T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf to identify and convert my sample time format string for sourcetype=nix-all-logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-identify-and-convert-my-sample/m-p/126482#M26037</link>
      <description>&lt;P&gt;Hi bwooden,&lt;BR /&gt;
Unfortunately after reconfiguration my props.conf file, the problem persists, time format is still unrecognizable.&lt;BR /&gt;
Have you any idea why?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Nikola &lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 12:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-identify-and-convert-my-sample/m-p/126482#M26037</guid>
      <dc:creator>nikolab</dc:creator>
      <dc:date>2015-04-07T12:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf to identify and convert my sample time format string for sourcetype=nix-all-logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-identify-and-convert-my-sample/m-p/126483#M26038</link>
      <description>&lt;P&gt;It works now, I used old configuration from your first post...&lt;/P&gt;

&lt;P&gt;Nikola &lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2015 12:41:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-to-identify-and-convert-my-sample/m-p/126483#M26038</guid>
      <dc:creator>nikolab</dc:creator>
      <dc:date>2015-04-07T12:41:09Z</dc:date>
    </item>
  </channel>
</rss>

