Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Labarussias <[email protected]>
Signed-off-by: Carlo Mencarelli <[email protected]>
  • Loading branch information
2 people authored and poiana committed Oct 10, 2023
1 parent e65809c commit 85d2573
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func getConfig() *types.Configuration {
v.SetDefault("SumoLogic.SourceHost", "")
v.SetDefault("SumoLogic.Name", "")
v.SetDefault("SumoLogic.CheckCert", true)
v.SetDefault("SumoLogic.MutualTLS", false)

v.SetDefault("AWS.AccessKeyID", "")
v.SetDefault("AWS.SecretAccessKey", "")
Expand Down
8 changes: 4 additions & 4 deletions config_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ dynatrace:
# checkcert: true # check if ssl certificate of the output is valid (default: true)

sumologic:
ReceiverURL: "" # Sumologic HTTP Source URL, if not empty, Sumologic output is enabled
# SourceCategory: "" # Override the default Sumologic Source Category
# SourceHost: "" # Override the default Sumologic Source Host
# Name: "" # Override the default Sumologic Source Name
receiverURL: "" # Sumologic HTTP Source URL, if not empty, Sumologic output is enabled
# sourceCategory: "" # Override the default Sumologic Source Category
# sourceHost: "" # Override the default Sumologic Source Host
# name: "" # Override the default Sumologic Source Name
# minimumpriority: "" # minimum priority of event for using this output, order is emergency|alert|critical|error|warning|notice|informational|debug or "" (default)
# checkcert: true # check if ssl certificate of the output is valid (default: true)
6 changes: 3 additions & 3 deletions docs/outputs/sumologic.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ The Env var values override the settings from yaml file.

```yaml
sumologic:
ReceiverURL: "" # Sumologic HTTP Source URL, if not empty, Sumologic output is enabled
# SourceCategory: "" # Override the default Sumologic Source Category
# SourceHost: "" # Override the default Sumologic Source Host
receiverURL: "" # Sumologic HTTP Source URL, if not empty, Sumologic output is enabled
# sourceCategory: "" # Override the default Sumologic Source Category
# sourceHost: "" # Override the default Sumologic Source Host
# Name: "" # Override the default Sumologic Source Name
# minimumpriority: "" # minimum priority of event for using this output, order is emergency|alert|critical|error|warning|notice|informational|debug or "" (default)
# checkcert: true # check if ssl certificate of the output is valid (default: true)
Expand Down
2 changes: 1 addition & 1 deletion outputs/sumologic.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (c *Client) SumoLogicPost(falcopayload types.FalcoPayload) {
err = c.Post(falcopayload)
if err != nil {
c.setSumoLogicErrorMetrics()
log.Printf("[ERROR] : SumoLogic - %v\n", err)
log.Printf("[ERROR] : %x - %v\n", c.OutputType, err)
return
}

Expand Down

0 comments on commit 85d2573

Please sign in to comment.