Skip to content

Commit c877415

Browse files
Update file.md
1 parent 4dde544 commit c877415

File tree

1 file changed

+14
-0
lines changed
  • crowdsec-docs/docs/notification_plugins

1 file changed

+14
-0
lines changed

crowdsec-docs/docs/notification_plugins/file.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ Some SIEM agents may not support some top level keys we define in the default nd
5151

5252
### SIEM Integration
5353

54+
:::warning
55+
Please note if you change the format that is printed to the file you must also configure the collector on the SIEM side to also expect the same format
56+
:::
57+
5458
#### Filebeat
5559

5660
Filebeat has a set of reserved top level keys and should not be used in the ndjson format. The following format can be used to be compatible with Filebeat:
@@ -61,6 +65,16 @@ format: |
6165
{ "time": "{{.StopAt}}", "source": "crowdsec", "alert": {{. | toJson }} }
6266
{{ end -}}
6367
```
68+
#### Wazuh
69+
70+
Wazuh has set of reserved top level keys and may cause logs not to be sent by the agent. The following format can be used to be compatible with Wazuh:
71+
72+
```yaml
73+
format: |
74+
{{range . -}}
75+
{ "crowdsec": { "time": "", "program": "crowdsec", "alert": {{. | toJson }} }}
76+
{{ end -}}
77+
```
6478

6579
## Testing the plugin
6680

0 commit comments

Comments
 (0)