Commit e41b84819a0355b696ebf8162b94b8d5aabe9b30

Authored by Jacob Vosmaer
1 parent 11aba602

Fix editing error

Showing 1 changed file with 13 additions and 13 deletions   Show diff stats
README.md
... ... @@ -435,6 +435,19 @@ about the files it generates.
435 435  
436 436 You can modify svlogd settings via `/etc/gitlab/gitlab.rb` with the following settings:
437 437  
  438 +```ruby
  439 +# Below are the default values
  440 +logging['svlogd_size'] = 200 * 1024 * 1024 # rotate after 200 MB of log data
  441 +logging['svlogd_num'] = 30 # keep 30 rotated log files
  442 +logging['svlogd_timeout'] = 24 * 60 * 60 # rotate after 24 hours
  443 +logging['svlogd_filter'] = "gzip" # compress logs with gzip
  444 +logging['svlogd_udp'] = nil # transmit log messages via UDP
  445 +logging['svlogd_prefix'] = nil # custom prefix for log messages
  446 +
  447 +# Optionally, you can override the prefix for e.g. Nginx
  448 +nginx['svlogd_prefix'] = "nginx"
  449 +```
  450 +
438 451 ### UDP log shipping (GitLab Enterprise Edition only)
439 452  
440 453 You can configure omnibus-gitlab to send syslog-ish log messages via UDP.
... ... @@ -458,19 +471,6 @@ Example log messages:
458 471  
459 472 ```
460 473  
461   -```ruby
462   -# Below are the default values
463   -logging['svlogd_size'] = 200 * 1024 * 1024 # rotate after 200 MB of log data
464   -logging['svlogd_num'] = 30 # keep 30 rotated log files
465   -logging['svlogd_timeout'] = 24 * 60 * 60 # rotate after 24 hours
466   -logging['svlogd_filter'] = "gzip" # compress logs with gzip
467   -logging['svlogd_udp'] = nil # transmit log messages via UDP
468   -logging['svlogd_prefix'] = nil # custom prefix for log messages
469   -
470   -# Optionally, you can override the prefix for e.g. Nginx
471   -nginx['svlogd_prefix'] = "nginx"
472   -```
473   -
474 474 ## Starting a Rails console session
475 475  
476 476 If you need access to a Rails production console for your GitLab installation
... ...