Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions 50-filter-postfix.conf
Original file line number Diff line number Diff line change
Expand Up @@ -305,4 +305,20 @@ filter {
"postfix_requiretls", "requiretls", "true"
]
}

# Convert timestamp fields from string to date
# NOTE: postfix timestamps don't contain a year value, which makes logstash assume the current year.
# Beware when parsing historic log files!
date {
match => [
"postfix_anvil_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"
]
target => "postfix_anvil_timestamp"
}
date {
match => [
"postfix_scache_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"
]
target => "postfix_scache_timestamp"
}
}
1 change: 1 addition & 0 deletions test_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ EOF

cat 50-filter-postfix.conf >> "$PIPELINE"

echo Preparing output config
cat >> "$PIPELINE" << EOF
output {
file {
Expand Down