63 lines
1.7 KiB
Plaintext
63 lines
1.7 KiB
Plaintext
[SERVICE]
|
|
Flush 1
|
|
Log_Level info
|
|
Parsers_File parsers.conf
|
|
storage.path ./storage
|
|
storage.sync normal
|
|
|
|
[INPUT]
|
|
Name tail
|
|
Path E:\var\log\edge\edge-node\*.log
|
|
Tag app.http.logs
|
|
Parser json
|
|
Refresh_Interval 1
|
|
Read_from_Head true
|
|
DB ./http-logs.db
|
|
Mem_Buf_Limit 128MB
|
|
Skip_Long_Lines On
|
|
|
|
[INPUT]
|
|
Name tail
|
|
Path E:\var\log\edge\edge-dns\*.log
|
|
Tag app.dns.logs
|
|
Parser json
|
|
Refresh_Interval 1
|
|
Read_from_Head true
|
|
DB ./dns-logs.db
|
|
Mem_Buf_Limit 128MB
|
|
Skip_Long_Lines On
|
|
|
|
[OUTPUT]
|
|
Name http
|
|
Match app.http.logs
|
|
Host 127.0.0.1
|
|
Port 8443
|
|
URI /?query=INSERT+INTO+logs_ingest+FORMAT+JSONEachRow
|
|
Format json_lines
|
|
http_user ${CH_USER}
|
|
http_passwd ${CH_PASSWORD}
|
|
tls On
|
|
tls.verify On
|
|
# tls.ca_file C:\\path\\to\\ca.pem
|
|
# tls.vhost clickhouse.example.com
|
|
Json_Date_Key timestamp
|
|
Json_Date_Format epoch
|
|
Retry_Limit 10
|
|
|
|
[OUTPUT]
|
|
Name http
|
|
Match app.dns.logs
|
|
Host 127.0.0.1
|
|
Port 8443
|
|
URI /?query=INSERT+INTO+dns_logs_ingest+FORMAT+JSONEachRow
|
|
Format json_lines
|
|
http_user ${CH_USER}
|
|
http_passwd ${CH_PASSWORD}
|
|
tls On
|
|
tls.verify On
|
|
# tls.ca_file C:\\path\\to\\ca.pem
|
|
# tls.vhost clickhouse.example.com
|
|
Json_Date_Key timestamp
|
|
Json_Date_Format epoch
|
|
Retry_Limit 10
|