Skip to content

Add validation for the logstash configuration #3

Add validation for the logstash configuration

Add validation for the logstash configuration #3

on: [push]
jobs:
test-syntax:
runs-on: ubuntu-latest
container:
image: logstash:8.12.0
volumes:
- postfix.grok:/etc/logstash/patterns.d/postfix.grok
- 50-filter-postfix.conf:/usr/share/logstash/pipeline/50-filter-postfix.conf
steps:
- name: Validate configuration file syntax
run: logstash --config.test_and_exit -f /usr/share/logstash/pipeline/50-filter-postfix.conf