Skip to content

Commit

Permalink
Fix rsyslog connection to elasticsearch over https.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed May 11, 2019
1 parent 726c558 commit a5a403f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api-umbrella/cli/read_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ local function set_computed_config()
end
end

if parsed["scheme"] == "https" then
parsed["_https?"] = true
end

table.insert(config["elasticsearch"]["_servers"], parsed)
end
end
Expand Down
3 changes: 3 additions & 0 deletions templates/etc/rsyslog.d/analytics.conf.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ action(
type="omelasticsearch"
server="{{elasticsearch._first_server.host}}"
serverport="{{elasticsearch._first_server.port}}"
{{#elasticsearch._first_server.https?}}
usehttps="on"
{{/elasticsearch._first_server.https?}}
{{#elasticsearch._first_server.user}}
uid="{{elasticsearch._first_server.user}}"
{{/elasticsearch._first_server.user}}
Expand Down

0 comments on commit a5a403f

Please sign in to comment.