PDF (A4) - 40.9Mb
Man Pages (TGZ) - 259.7Kb
Man Pages (Zip) - 366.9Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb
This section describes how to configure error logging using the built-in filter,log_filter_internal, and the JSON sink,log_sink_json, to take effect immediately and for subsequent server startups. For general information about configuring error logging, seeSection 7.4.2.1, “Error Log Configuration”.
To enable the JSON sink, first load the sink component, then modify thelog_error_services value:
INSTALL COMPONENT 'file://component_log_sink_json';SET PERSIST log_error_services = 'log_filter_internal; log_sink_json'; To setlog_error_services to take effect at server startup, use the instructions atSection 7.4.2.1, “Error Log Configuration”. Those instructions apply to other error-logging system variables as well.
It is permitted to namelog_sink_json multiple times in thelog_error_services value. For example, to write unfiltered events with one instance and filtered events with another instance, you could setlog_error_services like this:
SET PERSIST log_error_services = 'log_sink_json; log_filter_internal; log_sink_json'; The JSON sink determines its output destination based on the default error log destination, which is given by thelog_error system variable. Iflog_error names a file, the JSON sink bases output file naming on that file name, plus a numbered. suffix, withNN.jsonNN starting at 00. For example, iflog_error isfile_name, successive instances oflog_sink_json named in thelog_error_services value write to,file_name.00.json, and so forth.file_name.01.json
Iflog_error isstderr, the JSON sink writes to the console. Iflog_sink_json is named multiple times in thelog_error_services value, they all write to the console, which is likely not useful.
PDF (A4) - 40.9Mb
Man Pages (TGZ) - 259.7Kb
Man Pages (Zip) - 366.9Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb