Posted onEdited onInFilebeatViews: Disqus: Symbols count in article: 4.1kReading time ≈7 mins.
Filebeat Dissect
1.One of the Processors used by Filebeat to cut logs 2.Dissect mainly cuts out the key through% {key_name}, and the corresponding content is the value of this key 3.Tips for cutting the log: do not need to cut the text or special characters in the log, please write it into the dissect processor
The following demonstrates a log dissect processor
In order to enhance the synchronization of the Filebeat settings of each project and the Elasticsearch pipeline of the ITIG team. In the future, Filebeat will add the version number --------------------------------------- - type: log paths: - "${PWD}/sampleLogs/FullRecord.log" fields: version: "1.0" fields_under_root: true scan_frequency: 3s idle_timeout: 3s pipeline: fullrecordapi ignore_older: 2h close_inactive: 1h clean_inactive: 3h close_removed: true clean_removed: true processors: - dissect: tokenizer: "[%{logdate}][%{class}][%{severity}][%{thread}] [Status]:%{Status},[Agent_ID]:%{Agent_ID},[Request]:%{Request},[Response]:%{Response}" field: "message" target_prefix: "" - drop_event: --------------------------------------- If each project needs to modify the filebeat config. Please be sure to inform the ITIG team to modify the version number to avoid the log from failing to parse
Notice:
1 2
1. Any spaces or special characters will affect whether the log can be cut correctly, please make sure the log format is unified 2. Please use the lower camel case to name the key