Advertisement
Guest User

Untitled

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