Forum Discussion
neeeewbie
Dec 16, 2022MVP
Is it possible to block a specific log with words in local log?
Is it possible to block a specific log with words in local log? After API communication connection, certain logs are being generated without service ID. Is it possible to block log creation even wi...
- Dec 17, 2022
If you are talking about logs which use syslog, then yes, you can, just use a syslog filter
e.g.
filter remove_a_line{ not match("MATCH-STRING-TO-DROP"); }; log { source(src); filter(remove_a_line); destination(/var/log/messages); };
There are other types of logs in F5 products, so if you are talking about something else you might need to be more specific.
Josiah
Dec 17, 2022Employee
If you are talking about logs which use syslog, then yes, you can, just use a syslog filter
e.g.
filter remove_a_line{ not match("MATCH-STRING-TO-DROP"); }; log { source(src); filter(remove_a_line); destination(/var/log/messages); };
There are other types of logs in F5 products, so if you are talking about something else you might need to be more specific.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects