Skip to content

Commit 7490c04

Browse files
authored
[Fortinet] Separate Fortinet FortiManager into own Integration (#3267)
* Separate Fortinet FortiManager into own Integration * update changelog * fix docker compose * update codeowners * fix dataset field * update to ecs 8.3 * fix CI issues * not needed * bad formating
1 parent ecf9022 commit 7490c04

File tree

25 files changed

+14184
-0
lines changed

25 files changed

+14184
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
/packages/fortinet_forticlient @elastic/security-external-integrations
6868
/packages/fortinet_fortigate @elastic/security-external-integrations
6969
/packages/fortinet_fortimail @elastic/security-external-integrations
70+
/packages/fortinet_fortimanager @elastic/security-external-integrations
7071
/packages/gcp @elastic/security-external-integrations @elastic/obs-cloud-monitoring
7172
/packages/gcp_pubsub @elastic/security-external-integrations
7273
/packages/github @elastic/security-external-integrations
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependencies:
2+
ecs:
3+
reference: [email protected]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Fortinet FortiManager Integration
2+
3+
This integration is for Fortinet FortiManager logs sent in the syslog format.
4+
5+
## Compatibility
6+
7+
This integration has been tested against FortiOS version 6.0.x and 6.2.x. Versions above this are expected to work but have not been tested.
8+
9+
### Log
10+
11+
The `log` dataset collects JFortinet FortiManager logs.
12+
13+
{{event "log"}}
14+
15+
{{fields "log"}}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: '2.3'
2+
services:
3+
fortinet-logfile:
4+
image: alpine
5+
volumes:
6+
- ./sample_logs:/sample_logs:ro
7+
- ${SERVICE_LOGS_DIR}:/var/log
8+
command: /bin/sh -c "cp /sample_logs/* /var/log/"
9+
fortinet-fortimanager-tcp:
10+
image: docker.elastic.co/observability/stream:v0.7.0
11+
volumes:
12+
- ./sample_logs:/sample_logs:ro
13+
command: log --start-signal=SIGHUP --delay=5s --addr elastic-agent:9514 -p=tcp /sample_logs/fortinet-fortimanager.log
14+
fortinet-fortimanager-udp:
15+
image: docker.elastic.co/observability/stream:v0.7.0
16+
volumes:
17+
- ./sample_logs:/sample_logs:ro
18+
command: log --start-signal=SIGHUP --delay=5s --addr elastic-agent:9515 -p=udp /sample_logs/fortinet-fortimanager.log

packages/fortinet_fortimanager/_dev/deploy/docker/sample_logs/fortinet-fortimanager.log

Lines changed: 100 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# newer versions go on top
2+
- version: "1.0.0"
3+
changes:
4+
- description: Initial version of Fortinet FortiManager as separate package
5+
type: enhancement # can be one of: enhancement, bugfix, breaking-change
6+
link: https://github.com/elastic/integrations/pull/3267
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fields:
2+
tags:
3+
- preserve_original_event

packages/fortinet_fortimanager/data_stream/log/_dev/test/pipeline/test-generated.log

Lines changed: 100 additions & 0 deletions
Large diffs are not rendered by default.

packages/fortinet_fortimanager/data_stream/log/_dev/test/pipeline/test-generated.log-expected.json

Lines changed: 904 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
service: fortinet-logfile
2+
input: logfile
3+
data_stream:
4+
vars:
5+
paths:
6+
- "{{SERVICE_LOGS_DIR}}/*fortimanager*.log"
7+
preserve_original_event: true

0 commit comments

Comments
 (0)