Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filter {
- json {
- source => "message"
- }
- }
- filebeat.inputs:
- - type: log
- paths:
- - 'path to the log directory you want to track'
- enter code here
- input_type: log
- json.keys_under_root: true
- json.add_error_key: true
- fields:
- log_type: 'type of log'
- processors:
- - decode_json_fields:
- fields: ["message"]
- process_array: true
- - add_tags:
- tags:
- - 'tag in elastic'
- filebeat.config.modules:
- path: ${path.config}/modules.d/*.yml
- setup.template.settings:
- index.number_of_shards: 1
- output.logstash:
- # The Logstash hosts
- hosts: ["where logstash is running"]
- index: 'your index'
- codec.json:
- pretty: true
- escape_html: false
- #================================ Processors =====================================
- # Configure processors to enhance or manipulate events generated by the beat.
- processors:
- - decode_json_fields:
- fields: ["message"]
- process_array: true
- json.keys_under_root: true
- json.add_error_key: true
- processors:
- - decode_json_fields:
- fields: ["message"]
- process_array: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement