Skip to content

[FEAT] Add Loki module to image Linuxserver Syslog-ng #34

@artyomtsybulkin

Description

@artyomtsybulkin

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Hello! I have used this destination for my setup on Linux like Fedora.
Found that Loki module not included.
Is it possible to add?

destination d_loki {
    loki(
        url("loki:9096")
        auth(insecure())
        labels(
            "job" => "syslog"
            "unixtime" => "${R_UNIXTIME}"
            "isodate" => "${R_ISODATE}"
            "month" => "${R_MONTH_ABBREV}"
            "year" => "${R_YEAR}"
            "ipv4" => "${SOURCEIP}"
            "hostname" => "${FULLHOST_FROM}"
            "level" => "${PRIORITY}"
            "facility" => "${FACILITY}"
            "program" => "${PROGRAM}"
        )
        workers(4)
        batch_timeout(60)
        batch_lines(8192)
    );
};

Now I'm trying to move to containerized architecture. Found that Loki and GRPC modules not included in Linuxserver syslog-ng image:
On Fedora:

[root@syslog syslog-ng]# syslog-ng --version
syslog-ng 4 (4.8.1)
Config version: 4.2
Installer-Version: 4.8.1
Revision:
Compile-Date: Oct  9 2024 00:00:00
Module-Directory: /usr/lib64/syslog-ng
Module-Path: /usr/lib64/syslog-ng
Include-Path: /usr/share/syslog-ng/include
Available-Modules: tags-parser,tfgetent,timestamp,xml,afsql,loki,otel,http,add-contextual-data,affile,afprog,afsocket,afstomp,afuser,appmodel,azure-auth-header,basicfuncs,cef,confgen,correlation,cryptofuncs,csvparser,disk-buffer,examples,graphite,hook-commands,json-plugin,kvformat,linux-kmsg-format,map-value-pairs,metrics-probe,pseudofile,rate-limit-filter,regexp-parser,sdjournal,secure-logging,stardate,syslogformat,system-source
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: on
Enable-TCP-Wrapper: off
Enable-Linux-Caps: on
Enable-Systemd: on

Linuxserver syslog-ng:

syslog-ng --version
syslog-ng 4 (4.8.1)
Config version: 4.2
Installer-Version: 4.8.1
Revision:
Compile-Date: Oct 16 2024 16:20:45
Module-Directory: /usr/lib/syslog-ng
Module-Path: /usr/lib/syslog-ng
Include-Path: /usr/share/syslog-ng/include
Available-Modules: add-contextual-data,afamqp,affile,afprog,afsocket,afsql,afstomp,afuser,appmodel,azure-auth-header,basicfuncs,cef,cloud_auth,confgen,correlation,cryptofuncs,csvparser,disk-buffer,graphite,hook-commands,http,json-plugin,kvformat,linux-kmsg-format,map-value-pairs,metrics-probe,mod-python,pseudofile,rate-limit-filter,redis,regexp-parser,secure-logging,stardate,syslogformat,system-source,tags-parser,timestamp,xml
Enable-Debug: off
Enable-GProf: off
Enable-Memtrace: off
Enable-IPv6: on
Enable-Spoof-Source: off
Enable-TCP-Wrapper: off
Enable-Linux-Caps: off
Enable-Systemd: off

Reason for change

Syslog-ng Loki module required

Proposed code change

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions