Skip to content

Commit

Permalink
Add system test for Fortinet client endpoint (elastic#432)
Browse files Browse the repository at this point in the history
The only issue were missing fields.

    FAILURE DETAILS:

    fortinet/clientendpoint :
    [0] field "ecs.version" is undefined
    [1] field "related.hosts" is undefined
    --- Test results for package: fortinet - END   ---
  • Loading branch information
andrewkroh committed Dec 9, 2020
1 parent b2c26ec commit 7eea499
Show file tree
Hide file tree
Showing 6 changed files with 127 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/fortinet/_dev/deploy/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine

COPY ./fortinet-clientendpoint.log /sample_logs/

ENTRYPOINT [ "/bin/sh" ]
8 changes: 8 additions & 0 deletions packages/fortinet/_dev/deploy/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '2.3'
services:
fortinet:
tty: true
build: .
volumes:
- ${SERVICE_LOGS_DIR}:/logs
command: -c "cp /sample_logs/*.log /logs/"
100 changes: 100 additions & 0 deletions packages/fortinet/_dev/deploy/docker/fortinet-clientendpoint.log

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
input: logfile
vars: ~
data_stream:
vars:
paths:
- "{{SERVICE_LOGS_DIR}}/*clientendpoint*.log"
6 changes: 6 additions & 0 deletions packages/fortinet/data_stream/clientendpoint/fields/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -836,3 +836,9 @@
ignore_above: 1024
description: List of keywords used to tag each event.
example: '["production", "env2"]'
- name: ecs.version
type: keyword
description: ECS version this event conforms to.
- name: related.hosts
type: keyword
description: All the host identifiers seen on your event.
2 changes: 2 additions & 0 deletions packages/fortinet/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ The `clientendpoint` dataset collects Fortinet FortiClient Endpoint Security log
| dns.answers.name | The domain name to which this resource record pertains. If a chain of CNAME is being resolved, each answer's `name` should be the one that corresponds with the answer's `data`. It should not simply be the original `question.name` repeated. | keyword |
| dns.answers.type | The type of data contained in this resource record. | keyword |
| dns.question.type | The type of record being queried. | keyword |
| ecs.version | ECS version this event conforms to. | keyword |
| error.message | Error message. | text |
| event.action | The action captured by the event. This describes the information in the event. It is more specific than `event.category`. Examples are `group-add`, `process-started`, `file-created`. The value is normally defined by the implementer. | keyword |
| event.code | Identification code for this event, if one exists. Some event sources use event codes to identify messages unambiguously, regardless of message language or wording adjustments over time. An example of this is the Windows Event ID. | keyword |
Expand Down Expand Up @@ -699,6 +700,7 @@ The `clientendpoint` dataset collects Fortinet FortiClient Endpoint Security log
| process.pid | Process id. | long |
| process.ppid | Parent process' pid. | long |
| process.title | Process title. The proctitle, some times the same as process name. Can also be different: for example a browser setting its title to the web page currently opened. | keyword |
| related.hosts | All the host identifiers seen on your event. | keyword |
| related.ip | All of the IPs seen on your event. | ip |
| related.user | All the user names seen on your event. | keyword |
| rsa.counters.dclass_c1 | This is a generic counter key that should be used with the label dclass.c1.str only | long |
Expand Down

0 comments on commit 7eea499

Please sign in to comment.