Skip to content

Instantly share code, notes, and snippets.

@a1git
Created December 17, 2020 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a1git/7232afe07f46474d5370113d609b9385 to your computer and use it in GitHub Desktop.
Save a1git/7232afe07f46474d5370113d609b9385 to your computer and use it in GitHub Desktop.
setup graylog, following documentaton.
create a new stream for openstack logs, select udp .. any port, example here is 11514
in user_variables,put
rsyslog_client_enabled: true
rsyslog_client_user_defined_targets:
- name: "graylog"
proto: "udp"
port: "11514"
hostname: "172.29.236.8"
template: '$template GRAYLOGRFC5424,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msg%\n"'
action_options: 'GRAYLOGRFC5424'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment