Options

There are several options you can specify, which modifies the behaviour of syslog-ng. For an exact list of possible options see the chapter Reference. The general syntax is here:
	options { option1(params); option2(params); ... };
      
Each option may have parameters, just like in driver specification.

Table 2-5. List of supported global options in syslog-ng

NameAccepted valuesDescription
time_reopen()numberThe time to wait before a died connection is reestablished
sync_freq()numberThe number of lines buffered before written to file
mark_freq()numberThe number of seconds between two MARK lines
log_fifo_size()numberThe number of lines fitting to the output queue
chain_hostnames()yes or noEnable or disable the chained hostname format.
use_dns()yes or noEnable or disable DNS usage. syslog-ng blocks on DNS queries, so enabling DNS may lead to a Denial of Service attack. To prevent DoS, protect your syslog-ng network endpoint with firewall rules, and make sure that all hosts, which may get to syslog-ng is resolvable.
use_fqdn()yes or noAdd Fully Qualified Domain Name instead of short hostname.
gc_threshold()number Sets the threshold value for the garbage collector. syslog-ng starts a garbage collection phase when the number of allocated objects reach this number. Default: 300.