Skip to content

GeoBlock Log Plugin

The GeoBlock Log plugin imports denied requests from the Traefik GeoBlock plugin log and stores them as security events.

It is intended for setups using the Traefik plugin from github.com/PascalMinder/geoblock or a compatible log format.

What it creates

Matching log lines are imported as:

text
security.geoblock

The plugin extracts, when available:

  • event time
  • source IP
  • country
  • original raw log line

These events appear on the Dashboard, Events page, IP Explorer, and can be enriched by GeoIP when GeoIP is enabled.

Settings

SettingWhat it does
EnabledEnables GeoBlock log watching/import.
GeoBlock log pathPath to geoblock.log. In Docker, mount the host log read-only into the container.
Poll interval secondsHow often the log file is checked for new entries.

Typical setup

In Docker, mount the GeoBlock log read-only into the OpenSecDash container and configure the same path in Settings.

yaml
volumes:
  - /var/log/traefik/geoblock.log:/logs/geoblock.log:ro

Then configure the same path in OpenSecDash.

Diagnostics

Diagnostics shows whether the configured log file exists and is readable. If the path is wrong or the file is not mounted into the container, the plugin reports an error.

Released under the GNU Affero General Public License v3.0.