Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable POSTFIX_COMMAND_COUNTER_DATA is not set #112

Closed
manuel-held opened this issue Jul 18, 2017 · 2 comments
Closed

Environment variable POSTFIX_COMMAND_COUNTER_DATA is not set #112

manuel-held opened this issue Jul 18, 2017 · 2 comments

Comments

@manuel-held
Copy link

manuel-held commented Jul 18, 2017

I get this Messages if i try to use your Patterns:

[2017-07-18T13:23:59,993][ERROR][logstash.agent ] Cannot create pipeline {:reason=>"Cannot evaluate ${POSTFIX_COMMAND_COUNTER_DATA}. Environment variable POSTFIX_COMMAND_COUNTER_DATA is not set and there is no default value given."}

Logstash 5.5 / Ubuntu 17.04

@whyscream
Copy link
Owner

I see there is a typo in line 216 of 50-filter-postfix.conf:

 match          => ["postfix_command_counter_data", "^${POSTFIX_COMMAND_COUNTER_DATA}$"]

This should read:

match          => ["postfix_command_counter_data", "^%{POSTFIX_COMMAND_COUNTER_DATA}$"]

Note the change: $ => %. Could you confirm that this works?

@manuel-held
Copy link
Author

Thank you, Works like a charm !

whyscream added a commit that referenced this issue Jul 18, 2017
whyscream added a commit that referenced this issue Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants