Syslog connector

Syslog connector – system policy that allows you to output information to the system log /var/log/syslog. The policy can be useful for uploading and integrating with a SIEM or BI system for analyzing data accumulated in iBatyr Monitor.

The Syslog connector policy is located in the Policies section in the Policies – System Policies folder. By default, the policy is disabled.

To enable the Syslog connector policy, go to its properties and check the box in the Policy active section.

Illustration 1 — Syslog connector

On the Filter tab, configure the data that will be transferred to the syslog file.

Illustration 2 — Syslog connector

After this, once every 5 minutes the following events will be placed in the file /var/log/syslog:

support@ubuntu:~$ grep -i ibatyr /var/log/syslog
Jan 29 12:53:44 ubuntu ibatyr: time="Jan 29 09:53:09" event="InterceptedFile" computer="NB0202" user="user" app="None" data="Clipboard.png"
Jan 29 12:57:52 ubuntu ibatyr: time="Jan 29 09:57:28" event="InterceptedFile" computer="NB0202" user="user" app="snippingtool.exe" data="Clipboard.png"
Jan 29 12:57:52 ubuntu ibatyr: time="Jan 29 09:57:26" event="InterceptedFile" computer="NB0202" user="user" app="snippingtool.exe" data="Clipboard.png"
Jan 29 12:59:38 ubuntu ibatyr: time="Jan 29 09:59:11" event="InterceptedFile" computer="NB0202" user="user" app="snippingtool.exe" data="Clipboard.png"
Jan 29 12:59:38 ubuntu ibatyr: time="Jan 29 09:59:10" event="InterceptedFile" computer="NB0202" user="user" app="snippingtool.exe" data="Clipboard.png"
Jan 29 12:59:38 ubuntu ibatyr: time="Jan 29 09:59:08" event="InterceptedFile" computer="NB0202" user="user" app="snippingtool.exe" data="Clipboard.png"
Jan 29 12:59:38 ubuntu ibatyr: time="Jan 29 09:59:06" event="InterceptedFile" computer="NB0202" user="user" app="snippingtool.exe" data="Clipboard.png"
Jan 29 12:59:38 ubuntu ibatyr: time="Jan 29 09:59:03" event="InterceptedFile" computer="NB0202" user="user" app="snippingtool.exe" data="Clipboard.png"

The appearance of such events means that the Syslog connector policy worked normally, and now this data can be collect using SYSLOG grabber from SIEM or sent to a remote rsyslog server.

CEF log format

To upload events to the syslog connector in CEF format, on the Properties tab, check the Log format: CEF section.

Data is loaded in CEF0 format.

Note

The CEF24 format is no longer supported. Files will be loaded in CEF0 format, even if you previously specified a different format in etc/ibatyr/config.

The CEF0 format uses key-value pairs to convey event information. These pairs determine what data and attributes are included in the log.

Key-value pairs for CEF0

  • (suser, ‘agent_account.user_name’, ‘str’)

  • (sntdom, ‘agent_account.user_domain’, ‘str’)

  • (duser, ‘agent_dialog.contact’, ‘str’)

  • (dntdom, ‘agent_dialog.domain’, ‘str’)

  • (dpt, ‘agent_networkconnection.remote_port’, ‘int’)

  • (dpn, ‘agent_eventtype.name’, ‘str’)

  • (cat, ‘analytics_filter.category’, ‘str’)

  • (deviceDirection, ‘agent_dialog.direction’, ‘str’)

  • (deviceExternalId, ‘agent_device.hwid’, ‘str’)

  • (deviceFacility, ‘agent_device.label’, ‘str’)

  • (dtz, ‘agent_time.time_zone’, ‘str’)

  • (dvc, ‘agent_agent.last_ip’, ‘str’)

  • (end, ‘agent_account.last_activity_time’, ‘date’)

  • (fileHash, ‘agent_attachedfile.sha1’, ‘str’)

  • (fileId, ‘agent_attachedfile.guid’, ‘str’)

  • (filePath, ‘agent_attachedfile.file_path’, ‘str’)

  • (fileType, ‘agent_attachedfile.mime’, ‘str’)

  • (fname, ‘agent_attachedfile.file_name’, ‘str’)

  • (fsize, ‘file_size’, ‘int’)

  • (msg, ‘text_data’, ‘str’)

  • (request, ‘agent_web.url’, ‘str’)

  • (suid, ‘agent_account.id’, ‘str’)

  • (suser, ‘agent_account.user_name’, ‘str’)

  • (deviceCustomDate1, ‘local_time’, ‘date’, ‘flex’)

  • (deviceCustomDate2, ‘time_registered’, ‘date’, ‘flex’)

  • (cn1, ‘activity_time’, ‘int’, ‘flex’)

  • (cn2, ‘printed_pages’, ‘int’, ‘flex’)

  • (cn3, ‘call_duration’, ‘int’)

  • (cs1, ‘agent_account.full_name’, ‘str’, ‘flex’)

  • (cs2, ‘agent_account.manager’, ‘str’, ‘flex’)

  • (cs3, ‘agent_account.office’, ‘str’, ‘flex’)

  • (cs4, ‘agent_agent.guid’, ‘str’, ‘flex’)

  • (cs5, ‘agent_agent.os’, ‘str’, ‘flex’)

  • (cs6, ‘agent_application.app_name’, ‘str’, ‘flex’)

  • (flexString1, ‘agent_attachedfile.data’, ‘str’, ‘flex’)

  • (flexString2, ‘parent_id’, ‘str’, ‘flex’)

  • (sourceServiceName, ‘window_title’, ‘str’)