update elasticsearch/logstash examples so that they work with elastic stack v5
[freeradius.git] / doc / schemas / logstash / log-courier.conf
index 95e1676..50c0b58 100644 (file)
@@ -1,16 +1,16 @@
 # Example log-courier configuration file for RADIUS detail files.
 #
+# This has been tested with log-courier version 2.0.4
+#
 {
        "general": {
                "persist directory": "/var/lib/log-courier",
                "log syslog": true,
-               "log stdout": false,
-               "admin listen address": "unix:/var/run/log-courier/admin.socket"
+               "log stdout": false
        },
 
        "network": {
                "transport": "tcp",
-               "reconnect": 10,
 
                # Servers to connect to.
                #
                        # logstash configuration. Logstash can then also be run
                        # with multiple workers (using -w).
                        #
-                       "codec": {
-                               "name": "multiline",
-                               "pattern": "^[A-Z\t]",
-                               "negate": false,
-                               "what": "next"
-                       }
+                       "codecs": [
+                               {
+                                       "name": "multiline",
+                                       "patterns": [ "^[A-Z\t]" ],
+                                       "what": "next"
+                               }
+                       ]
                }
        ]
 }