Skip to content

Commit 248c5ba

Browse files
authored
[Fortinet] Separate Fortinet FortiGate into own Integration (#3265)
* Separate Fortinet Fortigate into own Integration * update changelog * Update casing * update codeowners * format files * fix dataset field name * update to ECS 8.3 * found error * update sample event * Add TLS to tcp * Rebase changes for TCP input
1 parent 849b26a commit 248c5ba

30 files changed

+8161
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
/packages/fleet_server @elastic/elastic-agent-control-plane
6666
/packages/fortinet @elastic/security-external-integrations
6767
/packages/fortinet_forticlient @elastic/security-external-integrations
68+
/packages/fortinet_fortigate @elastic/security-external-integrations
6869
/packages/gcp @elastic/security-external-integrations @elastic/obs-cloud-monitoring
6970
/packages/gcp_pubsub @elastic/security-external-integrations
7071
/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 FortiGate Integration
2+
3+
This integration is for Fortinet FortiGate 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 FortiGate logs.
12+
13+
{{event "log"}}
14+
15+
{{fields "log"}}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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-firewall-tls:
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:9515 -p=tls --insecure /sample_logs/fortinet-firewall.log
14+
fortinet-firewall-tcp:
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:9514 -p=tcp /sample_logs/fortinet-firewall.log
19+
fortinet-firewall-udp:
20+
image: docker.elastic.co/observability/stream:v0.7.0
21+
volumes:
22+
- ./sample_logs:/sample_logs:ro
23+
command: log --start-signal=SIGHUP --delay=5s --addr elastic-agent:9515 -p=udp /sample_logs/fortinet-firewall.log

packages/fortinet_fortigate/_dev/deploy/docker/sample_logs/fortinet-firewall.log

Lines changed: 32 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 FortiGate as separate package
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/3265
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_fortigate/data_stream/log/_dev/test/pipeline/test-fortinet.log

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

0 commit comments

Comments
 (0)