<?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: Two dates in one log event is being split into two events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Two-dates-in-one-log-event-is-being-split-into-two-events/m-p/29869#M5161</link>
    <description>&lt;P&gt;You can solve this by specifying the time format Splunk should be looking for in props.conf. Right now in your installation Splunk breaks out a new event whenever it sees something that can be interpreted as a timestamp (which is the default behaviour), so by explicitly telling Splunk what the timestamp looks like it will only look for timestamps in that format.&lt;/P&gt;

&lt;P&gt;Something like this should go into your props.conf (like $SPLUNK_HOME/etc/system/local/props.conf):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
TIME_FORMAT = %d %b %Y %T
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...where you should exchange &lt;CODE&gt;yoursourcetype&lt;/CODE&gt; for the actual name of the sourcetype you're using for these logs. This will match "17 Jun 2011 13:59:13" but not "2011-06-17 13:59:13.685 EST", so Splunk will not break the event.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2011 07:14:54 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2011-06-17T07:14:54Z</dc:date>
    <item>
      <title>Two dates in one log event is being split into two events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Two-dates-in-one-log-event-is-being-split-into-two-events/m-p/29868#M5160</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I've ran in to a problem with an event that has a timestamp but also has another timestamp in the log itself.&lt;/P&gt;

&lt;P&gt;For example;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;17 Jun 2011 13:59:13,691 DEBUG com.message.MessageProcessor:96 - &amp;lt;EventPublishMessage&amp;gt;
  &amp;lt;oId&amp;gt;123146341&amp;lt;/oId&amp;gt;
  &amp;lt;messageDate&amp;gt;2011-06-17 13:59:13.685 EST&amp;lt;/messageDate&amp;gt;
  &amp;lt;userId&amp;gt;console&amp;lt;/userId&amp;gt;
  &amp;lt;notes&amp;gt;None&amp;lt;/notes&amp;gt;
&amp;lt;/EventPublishMessage&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;There are two events created,&lt;BR /&gt;
the first being &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;17 Jun 2011 13:59:13,691 DEBUG com.message.MessageProcessor:96 - &amp;lt;EventPublishMessage&amp;gt;
  &amp;lt;oId&amp;gt;123146341&amp;lt;/oId&amp;gt;
  &amp;lt;messageDate&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and the second &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2011-06-17 13:59:13.685 EST&amp;lt;/messageDate&amp;gt;
  &amp;lt;userId&amp;gt;console&amp;lt;/userId&amp;gt;
  &amp;lt;notes&amp;gt;None&amp;lt;/notes&amp;gt;
&amp;lt;/EventPublishMessage&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does anyone know how I can work around this problem?&lt;/P&gt;

&lt;P&gt;Cheers, &lt;BR /&gt;
Jason&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2011 05:22:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Two-dates-in-one-log-event-is-being-split-into-two-events/m-p/29868#M5160</guid>
      <dc:creator>jlamble1</dc:creator>
      <dc:date>2011-06-17T05:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Two dates in one log event is being split into two events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Two-dates-in-one-log-event-is-being-split-into-two-events/m-p/29869#M5161</link>
      <description>&lt;P&gt;You can solve this by specifying the time format Splunk should be looking for in props.conf. Right now in your installation Splunk breaks out a new event whenever it sees something that can be interpreted as a timestamp (which is the default behaviour), so by explicitly telling Splunk what the timestamp looks like it will only look for timestamps in that format.&lt;/P&gt;

&lt;P&gt;Something like this should go into your props.conf (like $SPLUNK_HOME/etc/system/local/props.conf):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
TIME_FORMAT = %d %b %Y %T
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...where you should exchange &lt;CODE&gt;yoursourcetype&lt;/CODE&gt; for the actual name of the sourcetype you're using for these logs. This will match "17 Jun 2011 13:59:13" but not "2011-06-17 13:59:13.685 EST", so Splunk will not break the event.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2011 07:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Two-dates-in-one-log-event-is-being-split-into-two-events/m-p/29869#M5161</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-06-17T07:14:54Z</dc:date>
    </item>
  </channel>
</rss>

