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

Property-Based Filters #179

Closed
Cropi opened this issue Oct 14, 2020 · 4 comments
Closed

Property-Based Filters #179

Cropi opened this issue Oct 14, 2020 · 4 comments

Comments

@Cropi
Copy link

Cropi commented Oct 14, 2020

Are the property-based filters supported? If yes, what is the syntax for adding them to a playbook?

In an rsyslog.conf file I would use the following:
:msg, startswith, "somefilter" -/var/log/output.log

Rsyslog doc: https://www.rsyslog.com/doc/v8-stable/configuration/filters.html

@nhosoi
Copy link
Contributor

nhosoi commented Oct 14, 2020

@Cropi, thanks for your question. Currently, logging role only supports selectors to filter messages. We are adding the property-based filters to the RFE list.

@Cropi
Copy link
Author

Cropi commented Oct 14, 2020

Thank you :)

nhosoi added a commit to nhosoi/logging that referenced this issue Oct 16, 2020
…tputs

Adding property-based filter options to files, forwards and remote_files output.
A test case is added to tests_basics_files2.yml.

In addition, fixing a bug caused by a left over file from the previous tests.

Issue - linux-system-roles#179
nhosoi added a commit to nhosoi/logging that referenced this issue Oct 16, 2020
…tputs

Adding property-based filter options to files, forwards and remote_files output.
A test case is added to tests_basics_files2.yml.

In addition, fixing a bug caused by a left over file from the previous tests.

Issue - linux-system-roles#179
nhosoi added a commit that referenced this issue Oct 16, 2020
…tputs

Adding property-based filter options to files, forwards and remote_files output.
A test case is added to tests_basics_files2.yml.

In addition, fixing a bug caused by a left over file from the previous tests.

Issue - #179
@nhosoi
Copy link
Contributor

nhosoi commented Oct 16, 2020

@Cropi, could it be possible to review #182 if it satisfies your needs?

I've added an example for the property-based filter to https://github.com/linux-system-roles/logging/#standalone-configuration. Please scroll down to the 5th. Thanks.

@Cropi
Copy link
Author

Cropi commented Oct 17, 2020

Thank you @nhosoi for creating a solution in such a short time. This is what I was looking for.

I'm closing this as resolved.

@Cropi Cropi closed this as completed Oct 17, 2020
nhosoi added a commit to nhosoi/logging that referenced this issue Nov 25, 2020
…tputs

Adding property-based filter options to files, forwards and remote_files output.
A test case is added to tests_basics_files2.yml.

In addition, fixing a bug caused by a left over file from the previous tests.

Issue - linux-system-roles#179

(cherry picked from commit 6ac8f9f)
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