701-100 Exam QuestionsBrowse all questions from this exam

701-100 Exam - Question 35


Which of the log messages below matches the following Logstash grok filter? grok { match => ["message", "%{SYSLOGBASE} new node %{IPORHOST:node}" ]

}

Show Answer
Correct Answer: BC

The grok filter uses %{SYSLOGBASE} to match the syslog prefix which includes the timestamp, host, process, and optionally the process ID, followed by 'new node' and then an IP or hostname matched by %{IPORHOST:node}. Option B fits this pattern perfectly with the structure 'Jun 30 00:36:49 headnode clustermanager[12353]: new node 198.51.100.103', matching SYSLOGBASE and extracting the '198.51.100.103' into the 'node' field.

Discussion

3 comments
Sign in to comment
hmagrounOption: B
Mar 28, 2020

The correct answer is B the filter: %{SYSLOGBASE} new node %{IPORHOST:node} will match B: Jun 30 00:36:49 headnode clustermanager[12353]: new node 198.51.100.103 and result in the following fields: SYSLOGBASE: Jun 30 00:36:49 headnode clustermanager[12353]: node: 198.51.100.103

Blob21
Jun 23, 2021

https://discuss.elastic.co/t/what-does-the-field-in-grok-message-do/2253/2

[Removed]Option: B
Mar 1, 2022

Correct is B