MISP / MISP/misp-docker

Change for rsyslog

Open
#213 2 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
Shell
Stars
394
Forks
194
Avg merge
3d 9h
Merged PRs (30d)
9

Description

References https://github.com/MISP/misp-docker/pull/211#issuecomment-2593188623

Issue to track change proposal. @ostefano which config file is best to use to store the default settings (item 3 & 4)?

  1. In Dockerfile: Add COPY rsyslog file /etc/rsyslog.d/40-misp.conf
# Enable slash in program names
global(parser.PermitSlashInProgramname="on")

if ($programname == '/var/www/MISP/app/tmp/logs/' or $programname == 'mispsyslog') then {
    action(type="omfile" file="/var/www/MISP/app/tmp/logs/mispsyslog.log" fileOwner="root" fileGroup="root" fileCreateMode="0644")
    & stop
}
  1. In Dockerfile: Add COPY logrotate file /etc/logrotate.d/misp
/var/www/MISP/app/tmp/logs/mispsyslog.log 
{
    su root root
    rotate 8
    dateext
    missingok
    notifempty
    compress
    weekly
    size 50M
    maxsize 500M
    copytruncate
}
  1. Set MISP syslog identifier (Security.syslog_ident=mispsyslog)
    • In core/files/etc/misp-docker/critical.defaults.json or core/files/etc/misp-docker/minimum_config.envars.json?
  2. Enable MISP syslog (Security.syslog_ident=true)
    • In core/files/etc/misp-docker/critical.defaults.json or core/files/etc/misp-docker/minimum_config.envars.json?
  3. Add a paragraph in README.md

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.