Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. # Example configuration for ulogd
  2. # $Id: ulogd.conf.in 5267 2005-02-19 21:33:43Z laforge $
  3. #
  4.  
  5. [global]
  6. ######################################################################
  7. # GLOBAL OPTIONS
  8. ######################################################################
  9.  
  10. # netlink multicast group (the same as the iptables --ulog-nlgroup param)
  11. nlgroup=1
  12.  
  13. # logfile for status messages
  14. logfile="/var/log/ulogd.log"
  15.  
  16. # loglevel: debug(1), info(3), notice(5), error(7) or fatal(8)
  17. loglevel=3
  18.  
  19. # socket receive buffer size (should be at least the size of the
  20. # in-kernel buffer (ipt_ULOG.o 'nlbufsiz' parameter)
  21. rmem=131071
  22.  
  23. # libipulog/ulogd receive buffer size, should be > rmem
  24. bufsize=150000
  25.  
  26. ######################################################################
  27. # PLUGIN OPTIONS
  28. ######################################################################
  29.  
  30. # We have to configure and load all the plugins we want to use
  31.  
  32. # general rules:
  33. # 1. load the plugins _first_ from the global section
  34. # 2. options for each plugin in seperate section below
  35.  
  36.  
  37. #
  38. # ulogd_BASE.so - interpreter plugin for basic IPv4 header fields
  39. # you will always need this
  40. plugin="/usr/lib/ulogd/ulogd_BASE.so"
  41.  
  42.  
  43. # output plugins.
  44. plugin="/usr/lib/ulogd/ulogd_LOGEMU.so"
  45. #plugin="/usr/lib/ulogd/ulogd_OPRINT.so"
  46. #plugin="/usr/lib/ulogd/ulogd_MYSQL.so"
  47. #plugin="/usr/lib/ulogd/ulogd_PGSQL.so"
  48. #plugin="/usr/lib/ulogd/ulogd_SQLITE3.so"
  49. #plugin="/usr/lib/ulogd/ulogd_PCAP.so"
  50.  
  51.  
  52. [LOGEMU]
  53. file="/var/log/ulogd.syslogemu"
  54. sync=1
  55.  
  56. [OPRINT]
  57. file="/var/log/ulogd.pktlog"
  58.  
  59. [MYSQL]
  60. table="ulog"
  61. pass="changeme"
  62. user="laforge"
  63. db="ulogd"
  64. host="localhost"
  65.  
  66. [PGSQL]
  67. table="ulog"
  68. schema="public"
  69. pass="changeme"
  70. user="postgres"
  71. db="ulogd"
  72. host="localhost"
  73.  
  74. [SQLITE3]
  75. table="ulog"
  76. db="/path/to/sqlite/db"
  77. buffer=200
  78.  
  79. [PCAP]
  80. file="/var/log/ulogd.pcap"
  81. sync=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement