GithubHelp home page GithubHelp logo

isabella232 / salt-formula-ulogd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from salt-formulas/salt-formula-ulogd

0.0 0.0 0.0 20 KB

ulogd salt formula

License: Other

Shell 53.06% Makefile 34.29% HTML 1.08% SaltStack 11.57%

salt-formula-ulogd's Introduction

Ulogd Formula

Ulogd2 is a userspace logging daemon for netfilter/iptables related logging.

Sample Metadata

Single ulogd service

ulogd:
  server:
    enabled: true
    sections: |            # If no "sections" are defined - default config (/etc/ulogd.conf) is used
      [global]
      logfile="syslog"
      loglevel=3
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_inppkt_NFLOG.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_inpflow_NFCT.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_IFINDEX.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_IP2STR.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_IP2BIN.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_PRINTPKT.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_HWHDR.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_filter_PRINTFLOW.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_output_LOGEMU.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_output_SYSLOG.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_output_XML.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_output_GPRINT.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_raw2packet_BASE.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_inpflow_NFACCT.so"
      plugin="/usr/lib/x86_64-linux-gnu/ulogd/ulogd_output_GRAPHITE.so"
      stack="ct1:NFCT,ip2str1:IP2STR,print1:PRINTFLOW,sys2:SYSLOG"

      [ct1]
      hash_enable=0
      event_mask=0x00000001

      [sys2]
      facility=LOG_LOCAL2
      level=LOG_NOTICE
...
...
linux:
  system:
    kernel:
      sysctl:
        net.netfilter.nf_conntrack_acct: 1
        net.netfilter.nf_conntrack_timestamp: 1
...
...
rsyslog:
  client:
    enabled: true
    output:
      file:
        /var/log/ulog/ulogd.log:
          filter: local2.*
          owner: syslog
          group: adm
          createmode: 640
          umask: 0022
          sync: false
          enabled: true
          stop_processing: true
      remote:
        192.168.1.1:
          action: "@@192.168.1.1:514"
          filter: "local2.*"
          enabled: true
...
...
logrotate:
  server:
    enabled: true
    job:
      ulogd2:
        - files:
          - /var/log/ulog/ulogd.log
          options:
            - rotate: 30
            - daily
            - missingok
            - compress
            - sharedscripts
            - create 640 ulog adm
            - postrotate: "invoke-rc.d ulogd2 reload > /dev/null"

Build Steps

docker run --rm -it -v $PWD:/mnt ubuntu:latest bash
cd /mnt
apt update
apt-get install -y build-essential devscripts equivs git-buildpackage python-dev python-virtualenv sudo
mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes -y" -i debian/control
debuild --no-lintian -uc -us -b
mv ../*.deb .

References

Documentation and Bugs

To learn how to install and update salt-formulas, consult the documentation available online at:

http://salt-formulas.readthedocs.io/

In the unfortunate event that bugs are discovered, they should be reported to the appropriate issue tracker. Use GitHub issue tracker for specific salt formula:

https://github.com/salt-formulas/salt-formula-ulogd/issues

For feature requests, bug reports or blueprints affecting entire ecosystem, use Launchpad salt-formulas project:

https://launchpad.net/salt-formulas

Developers wishing to work on the salt-formulas projects should always base their work on master branch and submit pull request against specific formula.

You should also subscribe to mailing list ([email protected]):

https://www.freelists.org/list/salt-formulas

Any questions or feedback is always welcome so feel free to join our IRC channel:

#salt-formulas @ irc.freenode.net

salt-formula-ulogd's People

Contributors

martin819 avatar ruzickap avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.