Skip to content

dzzun-ops/Zimbra-Graylog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graylog Server.

Graylog version: 2.4

Elasticsearch version: 5.6.8

Create indice for zimbra. In System / Indices. The index prefix must be zimbra as the image show. This is important for the proper functioning of the streams. alt text

Upload the file in folder Content Pack.

alt text

This content pack have grok patterns, beats input for zimbra and stream for zimbra with it's rules

The beats inputs port:5045

alt text

Edit zimbra the stream and select the index previusly created

alt text

Zimbra Server

You must install filebeat 5.6.x or any of the versions compatible with the version of elasticsearch 5.6.x. See Matrix compatibility

We will only modify the sessions of Filebeat prospectors and Logstash output.

#=================== Filebeat prospectors ======================
filebeat.prospectors:
 
# Each – is a prospector. Most options can be set at the prospector level, so
# you can use different prospectors for various configurations.
# Below are the prospector specific configurations.

– input_type: log
document_type: postfix
paths:
– /var/log/mail.log
– input_type: log
document_type: zimbra_audit
paths:
– /opt/zimbra/log/audit.log
– input_type: log
document_type: zimbra_mailbox
paths:
– /opt/zimbra/log/zmmailboxd.out
– input_type: log
document_type: nginx
paths:
– /opt/zimbra/log/nginx.access.log

#———————- Logstash output —————————
output.logstash:
# The Logstash hosts
hosts: ["graylog.dominio.com:5045"]

# Optional SSL. By default is off.
# List of root certificates for HTTPS server verifications
bulk_max_size: 2048
#ssl.certificate_authorities: ["/etc/filebeat/graylog.crt"]
template.name: "filebeat"
template.path: "filebeat.template.json"
template.overwrite: false
# Certificate for SSL client authentication
#ssl.certificate: "/etc/pki/client/cert.pem"

# Client Certificate Key
#ssl.key: "/etc/pki/client/cert.key"

The host in Logstash output section is graylog server.

Releases

No releases published

Packages

No packages published