with builtins; { resource.graylog_input = { nginx_access_logs = { title = "test nginx access log input"; # https://javadoc.io/doc/org.graylog2/graylog2-inputs/latest/index.html type = "org.graylog2.inputs.syslog.udp.SyslogUDPInput"; global = true; attributes = toJSON ({ allow_override_date = true; bind_address = "0.0.0.0"; expand_structured_data = false; force_rdns = false; number_worker_threads = 2; port = 12209; # todo recv_buffer_size = 262144; store_full_message = false; }); }; nginx_error_logs = { title = "test nginx error log input"; # https://javadoc.io/doc/org.graylog2/graylog2-inputs/latest/index.html type = "org.graylog2.inputs.syslog.udp.SyslogUDPInput"; global = true; attributes = toJSON ({ allow_override_date = true; bind_address = "0.0.0.0"; expand_structured_data = false; force_rdns = false; number_worker_threads = 2; port = 12208; # todo recv_buffer_size = 262144; store_full_message = false; }); }; }; resource.graylog_input_static_fields = { nginx_access_logs = { input_id = "\${graylog_input.nginx_access_logs.id}"; fields = { from_nginx = true; nginx_error = false; nginx_access = true; }; }; nginx_error_logs = { input_id = "\${graylog_input.nginx_error_logs.id}"; fields = { from_nginx = true; nginx_error = true; nginx_access = false; }; }; }; }