Simple tool to send message to fluent
Go to file
Arkadiusz Rychliński c7736b7de5 Initial version
2023-03-14 17:16:53 +01:00
.gitignore Initial version 2023-03-14 17:16:53 +01:00
flsend.go Initial version 2023-03-14 17:16:53 +01:00
go.mod Initial version 2023-03-14 17:16:53 +01:00
go.sum Initial version 2023-03-14 17:16:53 +01:00
LICENSE Initial commit 2023-03-14 11:47:23 +01:00
README.md Initial version 2023-03-14 17:16:53 +01:00

flsend

Simple tool to send message to fluent

Building

go install go.ar76.eu/arek/flsend@latest

Usage

Parameters:

Usage of flsend:
  -host string
        Fluentd address (default "localhost")
  -port int
        Fluentd port (default 24224)
  -prefix string
        Tag preffix (application name) (default "flsend")
  -tag string
        Message tag (required)

Message is read from the standard input and send to fluentd with tag composed of{prefix}.{tag}.

Eg.

echo '{"msg": "Message description"}' | flsend -host 10.10.10.10 -tag test

saves the message in fluentd as

2023-03-14T16:10:54+00:00       flsend.test        {"msg":"Message description"}