QuestionQ25

VerifiedParsing Phase and Data

For this sourcetype definition, MAX_TIMESTAMP_LOOKAHEAD is missing. Which value fits best?

[sshd_syslog]  
TIME_PREFIX = ^  
TIME_FORMAT = %Y-%m-%d %H:%M:%S.%3N %z  
LINE_BREAKER = ([\r\n]+)\d\{4\}-\d\{2\}-\d\{2\} \d\{2\}:\d\{2\}:\d\{2\}  
  
SHOULD_LINEMERGE = false -  
  
TRUNCATE = 0 -  

Event example:

2018-04-13 13:42:41.214 -0500 server sshd[26219]: Connection from 172.0.2.60 port 47366  
Explanation

MAX_TIMESTAMP_LOOKAHEAD limits how many characters Splunk examines for a timestamp starting at the position established by TIME_PREFIX. With TIME_PREFIX = ^, parsing begins at the start of the event. The configured timestamp, including milliseconds and the numeric time-zone offset, is 29 characters long, so a lookahead of 30 is the appropriate available value.

Learn more

Community Discussion

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