logstash-forwarder.conf 831 Bytes
Newer Older
Gurvinder Singh's avatar
Gurvinder Singh committed
1 2 3 4 5 6
{
  "network": {
    "comment": "Specify the log router addresses here with comma seperation",
    "comment": "forwarder will choose one at random and will switch to next",

    "servers": [ "localhost:5000","localhost1:5000" ],
7 8
    "ssl ca": "/etc/ssl/certs/uninett-ca.pem",
    "timeout": 20
Gurvinder Singh's avatar
Gurvinder Singh committed
9 10 11 12 13 14 15 16 17 18
  },
  "comment": "Here you specify the log file you want to monitor",
  "comment": "and ship them to log cluster to process",
  "comment": "you can spcify multiple files/regex in names",
  "comment": "Make sure you specify correct service and type", 
  "comment": "as they decide how log is processed and stored",

  "files": [
    {
      "paths": [ "-" ],
19
      "fields": { "type": "stdin", "_service": "test" }
Gurvinder Singh's avatar
Gurvinder Singh committed
20 21 22
    },
    {
      "paths": ["/var/log/test*.log"],
23
      "fields": { "type": "syslog", "_service": "test" }
Gurvinder Singh's avatar
Gurvinder Singh committed
24 25 26 27
    }
  ]
}