syslog chain instead of json

This commit is contained in:
ntr
2019-11-13 11:35:58 +11:00
parent abdaa5fd56
commit 42dcf4e2d3
3 changed files with 21 additions and 33 deletions
+7 -7
View File
@@ -295,13 +295,13 @@
## Uncomment to remove deprecated metrics.
# fielddrop = ["uptime_format"]
[[inputs.tail]]
files = ["/var/log/mnml/mnml.log"]
name_override = "mnml_log"
data_format = "json"
json_time_key = "time"
json_time_format = "2006-01-02T15:04:05.999999999Z07:00"
json_string_fields = ["level", "module", "msg"]
# [[inputs.tail]]
# files = ["/var/log/mnml/mnml.log"]
# name_override = "mnml_log"
# data_format = "json"
# json_time_key = "time"
# json_time_format = "2006-01-02T15:04:05.999999999Z07:00"
# json_string_fields = ["level", "module", "msg"]
[[inputs.syslog]]
server = "tcp://:6514"