Created
February 20, 2021 18:23
-
-
Save alistaircol/bfbf6a04e9e58857037c0efda77ef87e to your computer and use it in GitHub Desktop.
Terraform: Graylog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "graylog_input" "syslog_udp" { | |
title = "syslog" | |
type = "org.graylog2.inputs.syslog.udp.SyslogUDPInput" | |
global = true | |
attributes = jsonencode({ | |
bind_address = "0.0.0.0" | |
port = 514 | |
recv_buffer_size = 262144 | |
decompress_size_limit = 8388608 | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
graylog = { | |
source = "terraform-provider-graylog/graylog" | |
version = "1.0.4" | |
} | |
} | |
} | |
provider "graylog" { | |
web_endpoint_uri = "http://localhost:9000/api" | |
auth_name = "admin" | |
auth_password = "" | |
api_version = "v3" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
graylog_auth_password = "fNHRWw7tUUUE5Mnv" | |
graylog_web_endpoint_uri = "http://localhost:9000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "graylog_web_endpoint_uri" { | |
description = "Graylog API endpoint" | |
default = "http://localhost:9000" | |
} | |
variable "graylog_api_version" { | |
description = "API version for graylog" | |
default = "v3" | |
} | |
variable "graylog_auth_name" { | |
description = "Username or API token or Session Token" | |
default = "admin" | |
} | |
variable "graylog_auth_password" { | |
description = "Password or the literal \"token\" or \"session\"" | |
default = "password" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment