Linux – SGBox Next Generation SIEM & SOAR https://www.sgbox.eu Next Generation SIEM & SOAR Mon, 02 Dec 2024 15:50:27 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://www.sgbox.eu/wp-content/uploads/2020/09/cropped-Logo-SGBox-Trasparente-NO-SCRITTA-150x150.webp Linux – SGBox Next Generation SIEM & SOAR https://www.sgbox.eu 32 32 Syslog configuration on OpenSuse https://www.sgbox.eu/en/knowledge-base/syslog-configuration-on-opensuse/ Wed, 15 Mar 2023 14:56:15 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=8504 On linux environment is not necessary to install a specific agent to send log to SGBox. The syslog protocol will be used.

ifup eth0
ip a add 192.168.1.200/24 dev eth0
ip route add default via 192.168.1.254

If not already present, install rsyslog packet.

zypper refresh
zypper update
zypper install vim
zypper install rsyslog
systemctl start rsyslog
systemctl enable rsyslog

Edit “rsyslog.conf” file

vi /etc/rsyslog.conf

Add the following row after $IncludeConfig /etc/rsyslog.d/*.conf in order to send only all logs. Is possible use the IP or the hostname of SGBox

*.* @SGBox-IP

Restart rsyslog deamon to load the new configuration and start to send logs

systemctl restart rsyslog

Logs, by default, are stored in /var/log/messages

]]>
rSyslog read custom files https://www.sgbox.eu/en/knowledge-base/rsyslog-read-custom-files/ Fri, 17 Feb 2023 15:59:53 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=8413 In /etc/ryslog.d/ add a file with priority like 60-myfileconfig.conf , this will be read after the main 50-default.conf file.

In this example, to read a Desktop log file:

$ModLoad imfile #Load the imfile input module
$InputFilePollInterval 2
$InputFileName /home/user/Desktop/events.log
$InputFileTag file-access:
$InputFileStateFile stat-file-access
$InputFileSeverity Info
$InputRunFileMonitor
$template file_log, " %msg% "

if $programname == 'file-access' then @10.25.2.68:514;file_log
if $programname == 'file-access' then stop

This configuration will read the file events.log and send it via syslog protocol UDP to the machine 10.250.2.68 .

The example content of the file events.log:

Test1 1 1 11 1 11 1
Test 2.2.2.2.2.2.2.2..2.2.2
Test 3.3.3.3.3.33.3.3.

Test 4.4.4.4.4.4.4.4
Testadasda sd 5 5 5 55 5
test 6.6.6.6.6.6.6
test 7.7.7.7.7 / 17.57

If no data timestamp is specified to the beginning of each line, there is the risk to have duplicated log.

See the results in LM > Analysis > Historical search
rSyslog read custom files

]]>
Syslog configuration on Solaris https://www.sgbox.eu/en/knowledge-base/syslog-configuration-on-solaris/ Thu, 26 Jan 2023 13:43:23 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=8203 Syslog configuration on Solaris

On linux environment is not necessary to install a specific agent to send log to SGBox. The syslog protocol will be used.
If not already present, install rsyslog daemon.

Edit “syslog.conf” file

vi /etc/syslog.conf

Add the following row in order to send only authentication logs. Is possible use the IP or the hostname of SGBox

auth,authpriv.* @SGBox-IP

Alternatively, you can add the following row if you want send all logs to SGBox. It will be useful for a in-depth research.

*.* @SGBox-IP

Restart rsyslog deamon:

On Solaris 8 and 9 with command:
/etc/init.d/syslog stop | start

On Solaris 10 with command:
svcadm restart system/system-log

]]>
Syslog configuration on AIX https://www.sgbox.eu/en/knowledge-base/syslog-configuration-on-aix/ Wed, 02 Nov 2022 16:21:58 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=7882 Syslog configuration on AIX

This article explains how to send logs from AIX systems to SGBox. It’s not necessary to install a specific agent. The syslog protocol will be used.

Log in to your AIX system
Edit “/etc/syslog.conf ” file

Add the following line
auth.info @SGBoxIP
The auth.info and the IP must be separated by a tab.
Save and exit.

Restart rsyslog deamon to load the new configuration and start to send logs

refresh -s syslogd

]]>
Rsyslog strict connection https://www.sgbox.eu/en/knowledge-base/rsyslog-strict-connection/ Wed, 30 Mar 2022 12:46:20 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=7250 Install the rsyslog-gnutls packge. In Ubuntu/Debian:
apt install rsyslog-gnutls

Add the following lines in the rsyslog file. In Ubuntu/Debian: /etc/rsyslog.d/50-default.conf or /etc/rsyslog.conf
$DefaultNetStreamDriverCAFile /root/certs/chain_bundle.crt
$DefaultNetStreamDriver gtls
$ActionSendStreamDriverMode 1 # run driver in TLS-only mode
$ActionSendStreamDriverAuthMode anon
*.* @@sgbox192.sgbox.it:6514

Restart the rsyslog service:
service rsyslog restart

]]>
Syslog configuration on XenServer https://www.sgbox.eu/en/knowledge-base/syslog-configuration-on-xenserver/ Fri, 27 Mar 2020 19:09:46 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=3597 Configure Syslog on XenServer

On Xen systems is not necessary to install a specific agent to send log to SGBox. The syslog protocol will be used.

Edit “xenserver.conf” file

vi /etc/rsyslog.d/xenserver.conf

Add the following row in order to send only authentication logs. Is possible use the IP or the hostname of SGBox

auth,authpriv.* @SGBox-IP

Alternatively, you can add the following row if you want send all logs to SGBox. It will be useful for a in-depth research.

*.* @SGBox-IP

Restart rsyslog deamon to load the new configuration and start to send logs

service rsyslog restart

]]>
Configure SNMP Service on Linux https://www.sgbox.eu/en/knowledge-base/configure-snmp-service-on-linux/ Tue, 17 Dec 2019 10:49:45 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=2776 The Simple Network Management Protocol (SNMP)

This section explain how to configure SNMP service on Linux systems in order to monitoring and collect detailed information about the server.

Requirements:

  • Check that SNMP service is installed.

The command to install SNMP changes depending on distribution; Debian, RedHat, Centos, Solaris, for this reason we recommend to search the Internet for the correct command to install the service.

Debian/Ubuntu:

apt-get -y install snmpd

RedHad/Centos/Fedora:

yum -y install net-snmp net-snmp-utils

Once the installation is complete, make a copy of your original file and proceed with the configuration.

vim /etc/snmp/snmpd.conf

Specify the listening interface of server for the snmp service.

snmpLinux1

Enter the community name and SGBox ip address.

snmpLinux2

Save changes and restart the SNMP service.

Debian/Ubuntu:

service snmpd restart

RedHad/Centos/Fedora:

service snmpd restart

]]>
Syslog configuration on Debian https://www.sgbox.eu/en/knowledge-base/syslog-configuration-on-debian/ Fri, 28 Jun 2019 15:23:36 +0000 https://10.253.1.90/sgbox/EN/?post_type=epkb_post_type_1&p=1676 How to configure Syslog on Debian

On linux environment is not necessary to install a specific agent to send log to SGBox. The syslog protocol will be used.
If not already present, install rsyslog packet.

apt-get -y install rsyslog

Edit “rsyslog.conf” file

vi /etc/rsyslog.conf

Add the following row in order to send only authentication logs. Is possible use the IP or the hostname of SGBox

auth,authpriv.* @SGBox-IP

Alternatively, you can add the following row if you want send all logs to SGBox. It will be useful for a in-depth research.

*.* @SGBox-IP

Restart rsyslog deamon to load the new configuration and start to send logs

service rsyslog restart

]]>
Syslog configuration on Fedora https://www.sgbox.eu/en/knowledge-base/syslog-configuration-on-fedora/ Fri, 28 Jun 2019 15:21:51 +0000 https://10.253.1.90/sgbox/EN/?post_type=epkb_post_type_1&p=1674 On linux environment is not necessary to install a specific agent to send log to SGBox. The syslog protocol will be used.
If not already present, install rsyslog packet.

yum -y install rsyslog

Edit “rsyslog.cong” file

vi /etc/rsyslog.conf

Add the following row in order to send only authentication logs. Is possible use the IP or the hostname of SGBox

auth,authpriv.* @SGBox-IP

Alternatively, you can add the following row if you want send all logs to SGBox. It will be useful for a in-depth research.

*.* @SGBox-IP

Restart rsyslog deamon to load the new configuration and start to send logs

systemctl restart rsyslog.service

]]>
Syslog configuration on RedHat https://www.sgbox.eu/en/knowledge-base/syslog-configuration-on-redhat/ Fri, 28 Jun 2019 15:21:01 +0000 https://10.253.1.90/sgbox/EN/?post_type=epkb_post_type_1&p=1672 On linux environment is not necessary to install a specific agent to send log to SGBox. The syslog protocol will be used.
If not already present, install rsyslog packet.

yum -y install rsyslog

Edit “rsyslog.cong” file

vi /etc/rsyslog.conf

Add the following row in order to send only authentication logs. Is possible use the IP or the hostname of SGBox

auth,authpriv.* @SGBox-IP

Alternatively, you can add the following row if you want send all logs to SGBox. It will be useful for a in-depth research.

*.* @SGBox-IP

Restart rsyslog deamon to load the new configuration and start to send logs

systemctl restart rsyslog.service

]]>