Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for file in **/**/*; do
- echo 'ENDOFMAILFILE' >> "$file"
- done
- input {
- file {
- type => "logmail"
- path => [ "/var/log/mail/**/*" ]
- start_position => "beginning"
- codec => multiline {
- pattern => "^ENDOFMAILFILE$"
- negate => "true"
- what => "previous"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement