Skip to content

Instantly share code, notes, and snippets.

@alistaircol
Created February 20, 2021 18:23
Show Gist options
  • Save alistaircol/bfbf6a04e9e58857037c0efda77ef87e to your computer and use it in GitHub Desktop.
Save alistaircol/bfbf6a04e9e58857037c0efda77ef87e to your computer and use it in GitHub Desktop.
Terraform: Graylog
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
})
}
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"
}
graylog_auth_password = "fNHRWw7tUUUE5Mnv"
graylog_web_endpoint_uri = "http://localhost:9000"
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