<?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: TimeFormat Error from a line in nullQueue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/TimeFormat-Error-from-a-line-in-nullQueue/m-p/101281#M21207</link>
    <description>&lt;P&gt;You need to tell Splunk &lt;EM&gt;something&lt;/EM&gt; about how to &lt;CODE&gt;timestamp&lt;/CODE&gt; your events.  I see you have commented out these 2 lines (and that one is not quite right); I suggest you uncomment  them and use these values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^\[
TIME_FORMAT = %d/%b/%Y:%H:%M:%S.%3N%Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively, if you commented out these lines because the timestamps in the events are bogus, you should use one of these two settings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATETIME_CONFIG = CURRENT
DATETIME_CONFIG = NONE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition#Timestamp_attributes"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition#Timestamp_attributes&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Jul 2015 22:51:58 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-04T22:51:58Z</dc:date>
    <item>
      <title>TimeFormat Error from a line in nullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TimeFormat-Error-from-a-line-in-nullQueue/m-p/101280#M21206</link>
      <description>&lt;P&gt;The transform works and filters out the the matching line from going into the index but I still get these errors:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WARN  DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event.  Context="source::/export/splunk/incoming/we_accesslog_extsqu_xxx.xxx.xxx.xxx_20120326_142201_32865.gz|host::xxx.xxx.xxx.xxx|cdsis-extended-squid|remoteport::38810" Text="#Number of transaction records: 1..."
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to avoid the timestamp error while continuing to filter the headers and footers to nullQueue. Any suggestions?&lt;/P&gt;

&lt;P&gt;Example Log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#Software: (CDS 2.6.1 b17)
Current-Time Time-to-Serve Client-IP Request-Desc/Status-Returned Bytes-Xferred Method URL MIME-Type
[21/Mar/2012:04:42:00.931+0000] 474623 xxx.xxx.xxx.xxx TCP_MISS/200 1807152 GET &lt;A href="http://url.coms" target="test_blank"&gt;http://url.coms&lt;/A&gt;
[21/Mar/2012:04:42:01.275+0000] 323330 xxx.xxx.xxx.xxx TCP_MISS/200 1152750 GET &lt;A href="http://url.coms" target="test_blank"&gt;http://url.coms&lt;/A&gt;
[21/Mar/2012:04:42:01.610+0000] 52900 xxx.xxx.xxx.xxx TCP_MISS/200 37486 GET &lt;A href="http://url.coms" target="test_blank"&gt;http://url.coms&lt;/A&gt;
[21/Mar/2012:04:42:02.001+0000] 108528 xxx.xxx.xxx.xxx TCP_MISS/200 640556 GET &lt;A href="http://url.coms" target="test_blank"&gt;http://url.coms&lt;/A&gt;
#Number of transaction records: 100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...we_accesslog...]
TRANSFORMS-debug_log = debug_log_footer_trans, debug_log_header_trans

[cdsis-extended-squid]
MAX_TIMESTAMP_LOOKAHEAD = 24
SHOULD_LINEMERGE = false
# TIME_PREFIX = ^\[
# TIME_FORMAT = %d/%b/%Y:%H:%M:%S.%3N
REPORT-cdsis_ext = cdsis_ext_squid_transform
EXTRACT-duration = ^\[\d+/\w{3}/\d+\:\d{2}\:\d{2}\:\d{2}\.\d{3,}\+\d{3,}\]\s(?&amp;lt;duration&amp;gt;\d+)
KV_MODE = none
MAX_DAYS_AGO = 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[debug_log_footer_trans]
REGEX=^.?Number
DEST_KEY = queue
FORMAT = nullQueue

[debug_log_header_trans]
REGEX=^Current-Time|^.Software
DEST_KEY = queue
FORMAT = nullQueue

[cdsis_ext_squid_transform]
REGEX =     ^\[\d+/\w{3}/\d+\:\d{2}\:\d{2}\:\d{2}\.\d{3,}\+\d{3,}\]\s(\d+)\s(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s(\w+)/(\d+)\s(\d+)\s(\w+)\s(http://\S+)\s(\w+/\w+)\s+$
FORMAT =    Duration::$1 ClientIP::$2 TCPStatus::$3 HTTPStatus::$4 BytesReturned::$5 HTTPMethod::$6 URL::$7 MimeType::$8
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Mar 2012 14:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TimeFormat-Error-from-a-line-in-nullQueue/m-p/101280#M21206</guid>
      <dc:creator>pshumate</dc:creator>
      <dc:date>2012-03-26T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: TimeFormat Error from a line in nullQueue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/TimeFormat-Error-from-a-line-in-nullQueue/m-p/101281#M21207</link>
      <description>&lt;P&gt;You need to tell Splunk &lt;EM&gt;something&lt;/EM&gt; about how to &lt;CODE&gt;timestamp&lt;/CODE&gt; your events.  I see you have commented out these 2 lines (and that one is not quite right); I suggest you uncomment  them and use these values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^\[
TIME_FORMAT = %d/%b/%Y:%H:%M:%S.%3N%Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Alternatively, if you commented out these lines because the timestamps in the events are bogus, you should use one of these two settings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATETIME_CONFIG = CURRENT
DATETIME_CONFIG = NONE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition#Timestamp_attributes"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition#Timestamp_attributes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jul 2015 22:51:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/TimeFormat-Error-from-a-line-in-nullQueue/m-p/101281#M21207</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-04T22:51:58Z</dc:date>
    </item>
  </channel>
</rss>

