-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thomas Labarussias <[email protected]>
- Loading branch information
Showing
9 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Falco Talon | ||
|
||
- **Category**: Response engine | ||
- **Website**: https://docs.falco-talon.org | ||
|
||
## Table of content | ||
|
||
- [Falco Talon](#falco-talon) | ||
- [Table of content](#table-of-content) | ||
- [Configuration](#configuration) | ||
- [Example of config.yaml](#example-of-configyaml) | ||
- [Additional info](#additional-info) | ||
- [Screenshots](#screenshots) | ||
|
||
## Configuration | ||
|
||
| Setting | Env var | Default value | Description | | ||
| ----------------------- | ----------------------- | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | ||
| `talon.address` | `TALON_ADDRESS` | | Talon address, if not empty, Talon output is **enabled** | | ||
| `talon.checkcert` | `TALON_CHECKCERT` | `true` | Check if ssl certificate of the output is valid | | ||
| `talon.minimumpriority` | `TALON_MINIMUMPRIORITY` | `""` (= `debug`) | Minimum priority of event for using this output, order is `emergency,alert,critical,error,warning,notice,informational,debug or ""` | | ||
|
||
> [!NOTE] | ||
The Env var values override the settings from yaml file. | ||
|
||
## Example of config.yaml | ||
|
||
```yaml | ||
talon: | ||
address: "" # Talon address, if not empty, Talon output is enabled | ||
# 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) | ||
``` | ||
|
||
## Additional info | ||
|
||
> [!WARNING] | ||
> Falco Talon is active under development and this integration may change in the future to reflect this evolution. | ||
## Screenshots |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// SPDX-License-Identifier: MIT OR Apache-2.0 | ||
|
||
package outputs | ||
|
||
import ( | ||
"fmt" | ||
"log" | ||
|
||
"github.com/falcosecurity/falcosidekick/types" | ||
) | ||
|
||
// TalonPost posts event to an URL | ||
func (c *Client) TalonPost(falcopayload types.FalcoPayload) { | ||
c.Stats.Talon.Add(Total, 1) | ||
|
||
err := c.Post(falcopayload) | ||
if err != nil { | ||
go c.CountMetric(Outputs, 1, []string{"output:talon", "status:error"}) | ||
c.Stats.Talon.Add(Error, 1) | ||
c.PromStats.Outputs.With(map[string]string{"destination": "talon", "status": Error}).Inc() | ||
log.Printf("[ERROR] : Talon - %v\n", err.Error()) | ||
return | ||
} | ||
|
||
// Setting the success status | ||
go c.CountMetric(Outputs, 1, []string{"output:talon", "status:ok"}) | ||
c.Stats.Talon.Add(OK, 1) | ||
fmt.Println("aaaaa") | ||
c.PromStats.Outputs.With(map[string]string{"destination": "talon", "status": OK}).Inc() | ||
} |
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
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