forked from LO3Energy/ansible-graylog-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graylog_inputs_create.yaml
73 lines (68 loc) · 1.97 KB
/
graylog_inputs_create.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
- hosts: localhost
gather_facts: no
become: true
vars:
graylog_fqdn: "localhost"
graylog_port: "9000"
graylog_user: "admin"
graylog_password: "admin"
graylog_inputs:
- gelf
- syslog
- bal
- cloudwatch
- test1
tasks:
- name: Create GELF HTTP input
graylog_inputs:
action: "create"
protocol: http
graylog_fqdn: "{{ graylog_fqdn }}"
graylog_port: "{{ graylog_port }}"
graylog_user: "{{ graylog_user }}"
graylog_password: "{{ graylog_password }}"
log_format: "gelf"
input_protocol: "TCP"
validate_certs: "false"
title: "GELF HTTP"
global_input: "true"
bind_address: "0.0.0.0"
port: 1514
- name: Create GELF UDP input
graylog_inputs:
action: "create"
protocol: http
graylog_fqdn: "{{ graylog_fqdn }}"
graylog_port: "{{ graylog_port }}"
graylog_user: "{{ graylog_user }}"
graylog_password: "{{ graylog_password }}"
log_format: "gelf"
input_protocol: "UDP"
title: "GELF UDP"
global_input: "true"
bind_address: "0.0.0.0"
port: 12201
# - name: Create Rsyslog TCP input
# graylog_inputs:
# action: "create"
# protocol: http
# graylog_fqdn: "{{ graylog_fqdn }}"
# graylog_port: "{{ graylog_port }}"
# graylog_user: "{{ graylog_user }}"
# graylog_password: "{{ graylog_password }}"
# global_input: "true"
# title: "Rsyslog TCP"
# bind_address: "0.0.0.0"
# port: "514"
# log_format: "syslog"
# input_protocol: "UDP"
# #validate_certs: "false"
# #allow_override_date: "true"
# #expand_structured_data: "false"
# #force_rdns: "false"
# #number_worker_threads: "2"
# #recv_buffer_size: "1048576"
# #store_full_message: "true"
# - name: Print inputs
# ansible.builtin.debug:
# msg: "{{ input_list }}"