Comparison

mod_log_json/README.markdown @ 3746:bc865568ff02

mod_log_json: Add UDP support
author Kim Alvefur <zash@zash.se>
date Wed, 13 Nov 2019 17:51:28 +0100
parent 3745:e43a82ddde12
child 4462:4356088ad675
comparison
equal deleted inserted replaced
3745:e43a82ddde12 3746:bc865568ff02
11 log = { 11 log = {
12 -- your other log sinks 12 -- your other log sinks
13 info = "/var/log/prosody/prosody.log" 13 info = "/var/log/prosody/prosody.log"
14 -- add this: 14 -- add this:
15 { to = "json", filename = "/var/log/prosody/prosody.json" }; 15 { to = "json", filename = "/var/log/prosody/prosody.json" };
16 }
17 ```
18
19 ## UDP
20
21 Alternatively, it can send logs via UDP:
22
23 ```lua
24 log = {
25 { to = "json", udp_host = "10.1.2.3", udp_port = "9999" };
16 } 26 }
17 ``` 27 ```
18 28
19 Format 29 Format
20 ====== 30 ======