Public Repository

Last pushed: 4 months ago
Short Description
DarkMetrix log server in docker for https://github.com/DarkMetrix/log/tree/master/server
Full Description

Introduction

DarkMetrix log server is an application that consume logs from Kafka and sink them to local file system as log files.

Kafka requirements

See DarkMetrix/log/server to get more information.

QuickStart

docker run \
        -d \
        --name dm_log_server \
        -v /tmp:/tmp \
        -v /etc/hosts:/etc/hosts \
        darkmetrix/log_server \
        -broker=your.kafka.address:9092

Configuration

-broker string

    The kafka broker list, eg:localhost:9092,localhost:9093, default is empty

-log_file_max_size int

    The max size of one log file, default:500M(524288000), minimum 1M

-log_flush_duration int

    The duration to call flush() to flush the buffer to disk, default:3 seconds, minimum 1 second

-log_path string

    The path to save all the log files, default:/tmp/dark_metrix/log/

-log_queue_size int

    The size of log transform queue to buffer logs for each file, default:10000, minimum 1000

-partition string

    The partition list to consume the logs, default is empty

-topic string

    The kafka topic which the logs will be sent to, default:net_log
Docker Pull Command
Owner
darkmetrix

Comments (0)