Some logstash pipelines and patterns I'm using
Put the Filebeat config in your filebeat inputs directory -->/etc/filebeat/inputs.d/
or add the content of the Filebeat config belowfilebeat.inputs:
in your/etc/filebeat/filebeat.yml
If you prefere the first option, you need to create theinputs.d
directory, and tell filebeat to use this:
#============================== Filebeat inputs ===============================
filebeat.config.inputs:
enabled:true
path:${path.config}/inputs.d/*.yml
Put the Logstash config in the config directory/etc/logstash/conf.d
,
and the grok patterns into the patterns directory/etc/logstash/patterns.d
Don't forget to restart Filebeat and Logstash after editing configs
Filebeat:fail2ban.yml
Logstash config:fail2ban.conf
Logstash pattern:fail2ban.grok
Filebeat:grafana.yml
Logstash config:grafana.conf
Logstash pattern:grafana.grok
Filebeat:rspamd.yml
Logstash config:rspamd.conf
Logstash pattern:rspamd.grok
Filebeat:ufw.yml
Logstash config:ufw.conf
Logstash pattern:ufw.grok
MonitWebsite
Filebeat:monit.yml
Logstash config:monit.conf
Logstash pattern:monit.grok
Filebeat:openvpnas.yml
Logstash config:openvpnas.conf
Logstash pattern:openvpnas.grok
fail2ban:
ufw:
MIT License
Copyright (c) 2021 Raphael Ebner
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software" ), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.