The project works as a bridge between standalone logs systems and the DXL fabric. In this way it is possibile to share log update information in real time within the dxl fabric.
-
Linux kernel version 2.6.13 and above: Inotify (inode notify) is a Linux kernel subsystem that acts to extend filesystems to notice changes to the filesystem and it was merged into the Linux kernel mainline in the kernel version 2.6.13
-
Pyinotify: Pyinotify is a Python module that leverages inotify
https://www.mcafee.com/us/developers/open-dxl/index.aspx
- Python SDK Installation link
- Certificate Files Creation link
- ePO Certificate Authority (CA) Import link
- ePO Broker Certificates Export link
$ sudo apt-get install python-pyinotify
[Certs]
BrokerCertChain=certs/brokercert.crt
CertFile=certs/client.crt
PrivateKey=certs/client.key
[Brokers]
{}={};8883;
In order to use the script, you need to run the tracelog2dxl.py specifying the topic destination and the log file to trace
python tracelog2dxl.py -t <topic destination> -f <logfile>
python tracelog2dxl.py -t /antivirus/sophos -f /opt/sophos-av/log/savd.log
output:
DXL message:
{"TYPE_PAYLOAD": "log", "PAYLOAD":
"<log><category>log.threat</category><level>ERROR</level><domain>savscand</domain>
<msg>NOTIFY-THREAT-INFECTED-NO-ACCESSED-PATH</msg>
<time>1492086958</time>
<arg>/home/filippo/Downloads/eicar.com.txt</arg>
<arg>EICAR-AV-Test</arg><arg>OPERATION_OPEN</arg></log>",
"SRC_HOST": "host01"}