OS Manuals

/usr/local/bin/gitlab-logger

GitLab Logger provides a means of wrapping non-structured log files within structure JSON.

From gitlab-logger-18.7 18.7.6-r1 (enterprise-packages), captured 2026-11-08 by running gitlab-logger --help (exit 0). permalink

Usage of /usr/local/bin/gitlab-logger
  -complete-lines
    	Only emit complete lines (default true)
  -debug
    	Be extra verbose. All debug information will be printed to stderr
  -exclude value
    	(DEPRECATED)Exclude list (use '|' as a separator): excludes any file with full path containing any of keywords provided
  -exclude-keyword value
    	Exclude any file with full path containing keyword (could be added multiple times)
  -exclude-list value
    	Exclude list (use '|' as a separator): excludes any file with full path containing any of keywords provided
  -json
    	Keep only JSON logs
  -max-log-file-size int
    	Maximum allowed log file size in bytes before file is truncated (default 1000)
  -minlevel int
    	Minimum log level
  -poll
    	Use polling instead of inotify
  -read-from-end
    	Read from the end of files at startup, rather than all of the file
  -truncate-logs
    	Truncate logs when they reach maximum allowed file size
  -truncate-logs-interval int
    	Interval in seconds in which to truncate log files (default 300)
  -version
    	Print version and exit
  -watch-pid int
    	The PID of the process to watch

	Values for flags can be supplied by environment variables (see README )

	CLI invocation flags overrides environment variable values
Options (14)
OptionDescriptionSource
-complete-linesOnly emit complete lines (default true)help
-debugBe extra verbose.help
-exclude value(DEPRECATED)Exclude list (use '|' as a separator): excludes any file with full path containing any of keywords providedhelp
-exclude-keyword valueExclude any file with full path containing keyword (could be added multiple times)help
-exclude-list valueExclude list (use '|' as a separator): excludes any file with full path containing any of keywords providedhelp
-jsonKeep only JSON logshelp
-max-log-file-size intMaximum allowed log file size in bytes before file is truncated (default 1000)help
-minlevel intMinimum log levelhelp
-pollUse polling instead of inotifyhelp
-read-from-endRead from the end of files at startup, rather than all of the filehelp
-truncate-logsTruncate logs when they reach maximum allowed file sizehelp
-truncate-logs-interval intInterval in seconds in which to truncate log files (default 300)help
-versionPrint version and exithelp
-watch-pid intThe PID of the process to watchhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.