Good Morning everyone,
I’m working on setting up Graylog to receive logs from another Bro IDS running Ubuntu 16.04.2. Both of the servers are on the same network. For reference i’m following this Content pack plugin. https://marketplace.graylog.org/addons/5e6cf3c6-7bdc-4a2c-bdca-441407e4a016. I believe this is configured correctly, but providing this to paint a picture of my end goal.
In the Graylog web interface I setup my input like this:
Bind address: 0.0.0.0
Port: 15514
All Other Options as Default:
Here is my netstat -plntu
output from my Graylog Server showing that 15514 is listening.
tcp 0 0 10.128.0.13:9300 0.0.0.0:* LISTEN 861/java
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 885/sshd
tcp 0 0 127.0.0.1:7001 0.0.0.0:* LISTEN 862/etcd
tcp 0 0 0.0.0.0:42341 0.0.0.0:* LISTEN 861/java
tcp 0 0 0.0.0.0:3333 0.0.0.0:* LISTEN 861/java
tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 859/mongod
tcp 0 0 127.0.0.1:2380 0.0.0.0:* LISTEN 862/etcd
tcp 0 0 10.128.0.13:9200 0.0.0.0:* LISTEN 861/java
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 857/nginx.conf
tcp 0 0 0.0.0.0:34929 0.0.0.0:* LISTEN 861/java
tcp6 0 0 :::22 :::* LISTEN 885/sshd
tcp6 0 0 :::15514 :::* LISTEN 858/java
tcp6 0 0 :::4001 :::* LISTEN 862/etcd
tcp6 0 0 :::9350 :::* LISTEN 858/java
tcp6 0 0 :::9000 :::* LISTEN 858/java
tcp6 0 0 :::2379 :::* LISTEN 862/etcd
udp 0 0 0.0.0.0:38073 0.0.0.0:* 653/dhclient
udp 0 0 0.0.0.0:68 0.0.0.0:* 653/dhclient
udp 0 0 10.128.0.13:123 0.0.0.0:* 1150/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 1150/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 1150/ntpd
On my Remote Ubuntu Server where I want the logs to be sent from I have the following rsyslog configuration.
Here is my /etc/rsyslog.conf
#################
#### MODULES ####
#################
module(load="imuxsock") # provides support for local system logging
module(load="imklog") # provides kernel logging support
#module(load="immark") # provides --MARK-- message capability
# provides UDP syslog reception
#module(load="imudp")
#input(type="imudp" port="514")
# provides TCP syslog reception
#module(load="imtcp")
#input(type="imtcp" port="514")
# Enable non-kernel facility klog messages
#$KLogPermitNonKernelFacility on
###########################
#### GLOBAL DIRECTIVES ####
###########################
#Set max message size for Large syslog messages
$MaxMessageSize 64k
#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
# Filter duplicated messages
$RepeatedMsgReduction on
#
# Set the default permissions for all log files.
#
#
# Emergencies are sent to everybody logged in.
#
#*.emerg :omusrmsg:*
#
# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.
#
#daemon,mail.*;\
# news.=crit;news.=err;news.=notice;\
# *.=debug;*.=info;\
# *.=notice;*.=warn /dev/tty8
# The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
# you must invoke `xconsole' with the `-file' option:
#
# $ xconsole -file /dev/xconsole [...]
#
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
# busy site..
#
#daemon.*;mail.*;\
# news.err;\
# *.=debug;*.=info;\
# *.=notice;*.=warn |/dev/console
Then here is my 50-default.conf
file in /etc/rsyslog.d/
:app-name, regex, "bro_*" {
*.* @@10.128.0.13:15514;RSYSLOG_SyslogProtocol23Format
stop
}
The 10.128.0.13 is my Graylog server and listening on the 15514 port as shown above.
Here are some outputs from the troubleshooting:
From the Remote Ubuntu Server
/usr/sbin/rsyslogd -f /etc/rsyslog.d/50-default.conf -N1
rsyslogd: version 8.16.0, config validation run (level 1), master config /etc/rsyslog.d/50-default.conf
rsyslogd: End of config validation run. Bye.
From the Graylog Server
/usr/sbin/rsyslogd -f /etc/rsyslog.d/50-default.conf -N1
rsyslogd: version 7.4.4, config validation run (level 1), master config /etc/rsyslog.d/50-default.conf
rsyslogd: End of config validation run. Bye.
Any assistance would be greatly appreciated. Sorry about the formatting, couldn’t figure out font adjustment.