Skip to content

Add validation for the logstash configuration #2

Add validation for the logstash configuration

Add validation for the logstash configuration #2

on: [push]
jobs:
test-syntax:
runs-on: ubuntu-latest
container:
image: logstash:8.12.0
volumes:
- $(pwd)/../../postfix.grok:/etc/logstash/patterns.d/postfix.grok
- $(pwd)/../../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