Hi There
I am new to filebeat. I am setting up logstash server to monitor log files from different process. Process run at a fix time and output is stored in a log file.
This is my config
`
filebeat:
prospectors:
-
paths:
- /var/log/auth.log
input_type: log
document_type: syslog
-
paths:
- /home/deltion/kinaxia/stage/_logs_22609-6240/out.log
multiline.pattern: '^([0-9]{4}-[0-9]{2}-[0-9]{2})'
multiline.negate: true
multiline.match: after
input_type: log
backoff: 600s
backoff_factor: 1
document_type: kinaxia_stage
-
paths:
- /home/deltion/kinaxia/stage/_logs_22548-6238/out.log
multiline.pattern: '^([0-9]{4}-[0-9]{2}-[0-9]{2})'
multiline.negate: true
multiline.match: after
input_type: log
backoff: 600s
backoff_factor: 1
document_type: kinaxia_stage
-
paths:
- /home/deltion/kinaxia/stage/_logs_22315-6237/out.log
multiline.pattern: '^([0-9]{4}-[0-9]{2}-[0-9]{2})'
multiline.negate: true
multiline.match: after
input_type: log
backoff: 600s
backoff_factor: 1
document_type: kinaxia_stage
-
paths:
- /home/deltion/kinaxia/stage/_logs_22308-6239/out.log
multiline.pattern: '^([0-9]{4}-[0-9]{2}-[0-9]{2})'
multiline.negate: true
multiline.match: after
input_type: log
backoff: 600s
backoff_factor: 1
document_type: kinaxia_stage
-
paths:
- /home/deltion/kinaxia/stage/_logs_22290-6236/out.log
multiline.pattern: '^([0-9]{4}-[0-9]{2}-[0-9]{2})'
multiline.negate: true
multiline.match: after
input_type: log
backoff: 600s
backoff_factor: 1
document_type: kinaxia_stage
-
paths:
- /home/deltion/kinaxia/stage/_logs_22289-6235/out.log
multiline.pattern: '^([0-9]{4}-[0-9]{2}-[0-9]{2})'
multiline.negate: true
multiline.match: after
input_type: log
backoff: 600s
backoff_factor: 1
document_type: kinaxia_stage
-
paths:
- /home/deltion/kinaxia/stage//error.log
multiline.pattern: '^([0-9]{4}-[0-9]{2}-[0-9]{2})'
multiline.negate: true
multiline.match: after
input_type: log
backoff: 600s
backoff_factor: 1
document_type: kinaxia_stage_error
-
paths:
- /home/deltion/CNOAPI/stage/.log
multiline.pattern: '^([0-9]{2}:[0-9]{2}:[0-9]{2})'
multiline.negate: true
multiline.match: after
input_type: log
document_type: automata_stage_log
-
paths:
- /home/deltion/CNOAPI/test/*.log
multiline.pattern: '^([0-9]{4}-[0-9]{2}-[0-9]{2})'
multiline.negate: true
multiline.match: after
input_type: log
document_type: automata_test_log
registry_file: /var/lib/filebeat/registry
output:
logstash:
hosts: ["127.0.0.1:5044"]
bulk_max_size: 1024
tls:
certificate_authorities: ["/etc/pki/tls/certs/logstash-forwarder.crt"]
file:
enabled: true
path: /home/deltion/filebeat_log
filename: filebeat
rotate_every_kb: 10485760
number_of_files: 10
shipper:
logging:
to_files: true
to_syslog: false
files:
rotateeverybytes: 10485760 # = 10MB
path: /var/log/mybeat
name: mybeat.log
keepfiles: 7
level: info
`
I don't see the out.log file from all the folders at set time.
Can you please tell me what i am doing wrong?
Thanks for your help in advance
Akilen