wiresx2influx

command module
v0.0.0-...-bc5a403 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

wiresx2influx

Parses the Wires-X log file WiresAccess.log and forwards the entries to a InfluxDBv2 instance.

Config file

The config file must be in the same directory with the binary and must be named wiresx2influx.conf.

The following is a copy and paste example of a config:

[wiresx]
logfile = "C:\\Users\\HB9TF\\OneDrive\\Documents\\WIRESXA\\AccHistory\\WiresAccess.log"
ingest_whole_file = false
timezone = "Europe/Zurich"

[influx]
server = "http://127.0.0.1:9999"
auth_token = "xyz"
organization = "someorg"
bucket = "somebucket"
repeater = "somename"  # tag

For timezone, refer to the "TZ database name" field in this Wikipedia article.

Build

The current Makefile creates a Windows executable:

make

Alternatively (e.g. for development), it can be built/run with Go directly as well of course:

go build .
./wiresx2influx

Note that you can't run it with go run . directly as it won't find the config file that way.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package config provides configuration reading functionality.
Package config provides configuration reading functionality.
Package influx provides InfluxDB feeding.
Package influx provides InfluxDB feeding.
Package wiresx provides WiresX log tailing and parsing.
Package wiresx provides WiresX log tailing and parsing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL