QuestionQ132

VerifiedImplementation and Configuration

Based on the following log-file sample, which props.conf configuration is most appropriate for correctly capturing the timestamp?

192.2.0.1 web-server [8/Dec/2020:12:31:52 -0400] "GET /index.html HTTP/1.0" 200 751

Explanation

TIME_PREFIX = \[ anchors timestamp recognition immediately after the opening bracket. MAX_TIMESTAMP_LOOKAHEAD = 26 covers the full bracketed timestamp, including 8/Dec/2020:12:31:52 -0400 and its closing bracket. Splunk applies the lookahead limit from the position established by TIME_PREFIX; its built-in timestamp recognition handles this standard access-log timestamp format.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!