graylog : update documentation

This commit is contained in:
Ingolf Wagner 2021-07-16 15:24:00 +02:00
parent da4a116447
commit ebc9d34b78
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -1,5 +1,31 @@
/*
# use this nginx configuration
# to send data to these inputs
log_format graylog2_json escape=json '{ "timestamp": "$time_iso8601", '
'"facility": "nginx", '
'"src_addr": "$remote_addr", '
'"body_bytes_sent": $body_bytes_sent, '
'"request_time": $request_time, '
'"response_status": $status, '
'"request": "$request", '
'"request_method": "$request_method", '
'"host": "$host",'
'"upstream_cache_status": "$upstream_cache_status",'
'"upstream_addr": "$upstream_addr",'
'"http_x_forwarded_for": "$http_x_forwarded_for",'
'"http_referrer": "$http_referer", '
'"http_user_agent": "$http_user_agent" }';
access_log syslog:server=${access_log_input} graylog2_json;
error_log syslog:server=${error_log_input};
*/
with builtins; { with builtins; {
resource = { resource = {
graylog_input = { graylog_input = {