mirror of https://github.com/MISP/misp-docker
Include rsyslog for local syslogger
Possible rsyslog file can be: /etc/rsyslog.d/40-misp.conf ``` global(parser.PermitSlashInProgramname="on") if ( ( $programname == '/var/www/MISP/app/tmp/logs/' or $programname == 'MISP-SYNC' or $programname == 'MISP-SCRIPTS' ) and not ( $msg contains 'contracts.canonical.' or $msg contains 'ubuntupro.http' ) ) then /var/www/MISP/app/tmp/logs/mispsyslog.log & stop ```pull/202/head
parent
654ac748f3
commit
6ac38fcb19
|
@ -262,6 +262,9 @@ EOF
|
|||
touch /var/www/MISP/.git/ORIG_HEAD && chmod 0600 /var/www/MISP/.git/ORIG_HEAD && chown www-data:www-data /var/www/MISP/.git/ORIG_HEAD
|
||||
EOF
|
||||
|
||||
# Include rsyslog to support syslogger
|
||||
RUN apt-get update ; apt-get install -y rsyslog
|
||||
|
||||
# Copy all our image specific files to appropriate locations
|
||||
COPY files/ /
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
|
|
|
@ -37,3 +37,12 @@ stdout_logfile=/dev/stdout
|
|||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
|
||||
[program:rsyslog]
|
||||
command=/usr/sbin/rsyslogd -n
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
autostart=true
|
||||
autorestart=true
|
||||
|
|
Loading…
Reference in New Issue