Hi,
I am using opnsense, which just allows sending logs via udp syslog and there is no way to add the token.
Therefore i tried logstash, but it seems like it doesnt support udp, did i miss something?
udp {
port => 6514
type => syslog
}
Port 6514 is exposed.
Thx,
Patrick
Hello,
You're right hosted collectors don't support UDP for now. And the main UDP input needs a token to route your logs.
Is it possible for you to log in a file and use a software like Filebeat to send your logs ?
No its not possible, as pfsense/opnsense doesn't use plain logfiles, small quote from their documentation:
> pfSense uses a Circular Log format known as clog to maintain a constant log size.
> There are multiple benefits to this method. The primary advantage is that the log files cannot grow and fill up filesystems. The downside is that they are no longer plain text logs, and cannot be directly used by programs like cat or grep. If they are viewed directly, "random" binary data may be seen inside the log and entries may appear out of order.
So the only way would be hosting a log stash myself and forwarding to the ovh ones right?
If you can do this, it is unfortunately the only solution for this use case. Once you have configured your Logstash, it will be fully compatible with Logs Data Platform.
Hi,
I wonder if it was possible for now to send logs to log data collector through udp.
Regards,
Hi @JulienF4,
On dedicated log collector, not yet.
But UDP is available on direct inputs (Gelf, LTSV, RFC5424, cap'n'proto).
Port mapping is available on "about" page of the Logs Data Platform manager.
Regards,
Thanks for this information.
The problem is that udp on graylog input require the `X_OVH_TOKEN`, which is not possible for my use case (forward log from docker engine : their gelf logging driver is not available). But I am going to use their syslog-ng driver.
You can also give https://github.com/gliderlabs/logspout a try
Thanks, I will have a look at this tools.