Skip to content

Forward Spyderbat events to flat files or syslog

License

Notifications You must be signed in to change notification settings

spyder-jeff/event-forwarder

 
 

Repository files navigation

Spyderbat Event Forwarder

The event forwarder is a small utility that consumes Spyderbat events from the API and emits flag files containing events, and optionally forwards events via syslog.

Requirements

  • Linux
  • x86_64 or arm64 processor
  • systemd

Helm Installation

Here

Installation

Download the latest release.

  1. Unpack the tarball:

NOTE: The release package filename will differ from the example below.

mkdir /tmp/sef
tar xfz spyderbat-event-forwarder.5b41e00.tgz -C /tmp/sef
  1. Run the installer:
cd /tmp/sef
sudo ./install.sh

You should see output like this:


spyderbat-event-forwarder is installed!

!!!!!!
Please edit the config file now:

    /opt/spyderbat-events/etc/config.yaml
!!!!!!

To start the service, run:

    sudo systemctl start spyderbat-event-forwarder.service

To view the service status, run:

    sudo journalctl -fu spyderbat-event-forwarder.service

  1. Edit the config file:

sudo vi /opt/spyderbat-events/etc/config.yaml

  1. Start the service:

sudo systemctl start spyderbat-event-forwarder.service

  1. Check the service:

sudo journalctl -fu spyderbat-event-forwarder.service

Use ^C to interrupt the log. If you see errors, check the configuration, restart the service, and check again.

  1. Enable the service to run at boot time:

sudo systemctl enable spyderbat-event-forwarder.service

  1. If desired, integrate with the Splunk universal forwarder:
$ sudo splunk add monitor /opt/spyderbat-events/var/log/spyderbat_events.log
Your session is invalid.  Please login.
Splunk username: <your splunk username>
Password: <your splunk password>
Added monitor of '/opt/spyderbat-events/var/log/spyderbat_events.log'.

About

Forward Spyderbat events to flat files or syslog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 78.3%
  • Smarty 7.1%
  • Shell 6.9%
  • Makefile 4.6%
  • Dockerfile 3.1%