39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
; Copyright (c) 2021 Battelle Energy Alliance, LLC. All rights reserved.
|
|
|
|
[unix_http_server]
|
|
file=/tmp/supervisor.sock ; (the path to the socket file)
|
|
chmod=0700
|
|
|
|
[supervisord]
|
|
nodaemon=true
|
|
logfile=/dev/null
|
|
logfile_maxbytes=0
|
|
pidfile=/tmp/supervisord.pid
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
[supervisorctl]
|
|
serverurl=unix:///tmp/supervisor.sock
|
|
|
|
[program:pcap-zeek]
|
|
command=python3 /usr/local/bin/pcap_zeek_processor.py
|
|
--verbose "%(ENV_PCAP_PIPELINE_DEBUG)s"
|
|
--extra-verbose "%(ENV_PCAP_PIPELINE_DEBUG_EXTRA)s"
|
|
--start-sleep 10
|
|
--threads %(ENV_ZEEK_AUTO_ANALYZE_PCAP_THREADS)s
|
|
--publisher "%(ENV_PCAP_MONITOR_HOST)s"
|
|
--pcap-directory /pcap/processed
|
|
--zeek /opt/zeek/bin/zeek
|
|
--autotag "%(ENV_AUTO_TAG)s"
|
|
--autozeek "%(ENV_ZEEK_AUTO_ANALYZE_PCAP_FILES)s"
|
|
--extract "%(ENV_ZEEK_EXTRACTOR_MODE)s"
|
|
--zeek-directory /zeek/upload
|
|
startsecs=15
|
|
startretries=1
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stdout_logfile=/dev/fd/1
|
|
stdout_logfile_maxbytes=0
|
|
redirect_stderr=true
|