Skip to content

Conversation

@andrewkroh
Copy link
Member

@andrewkroh andrewkroh commented Jul 21, 2020

What does this PR do?

Import the Suricata Filebeat module via PACKAGES=suricata mage -v ImportBeats.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all datasets collect metrics or logs.

Related issues

Screenshots

Screen Shot 2020-07-21 at 5 22 18 PM

Screen Shot 2020-07-21 at 5 22 30 PM

@andrewkroh andrewkroh added the enhancement New feature or request label Jul 21, 2020
@elasticmachine
Copy link

elasticmachine commented Jul 21, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Branch indexing]

  • Start Time: 2020-08-05T01:45:07.478+0000

  • Duration: 4 min 55 sec

Copy link

@andrewstucki andrewstucki Jul 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, just to make sure -- this will actually resolve to foo, bar, baz if it's given an array like ["foo", "bar", "baz"] (notice no brackets in the rendered template, see example).

Does filebeat automatically do string splitting for the tags part of the configuration? If not I think this needs to become something like:

tags: {{#each tags as |tag i|}} - {{tag}} {{/each}}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Thanks.

Import the Suricata Filebeat module via `PACKAGES=suricata mage -v ImportBeats`.
@andrewkroh andrewkroh marked this pull request as ready for review July 30, 2020 21:45
@andrewkroh
Copy link
Member Author

Where should the fields that Filebeat adds be defined? Things like input.type are not in the index template.

Screen Shot 2020-07-30 at 5 46 39 PM

Additionally there could be fields from processors like add_host_metadata or add_docker_metadata? Is it the responsibility of each package to define these?

@andrewkroh
Copy link
Member Author

This module reads log files. Some of the log lines are metrics about the software. These documents have event.kind: metric. Should they have dataset.type: metrics or dataset.type: logs? If dataset.type: metrics then how would I accomplish this?

@ruflin
Copy link
Contributor

ruflin commented Jul 31, 2020

@andrewkroh At the moment it is the responsibility of each package / dataset to add these fields.

@andrewkroh
Copy link
Member Author

This has been updated to add the datastream.* fields.

Copy link

@andrewstucki andrewstucki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need container.id? I notice that filebeat is putting that in too. Other than that, LGTM

Copy link
Contributor

@mtojek mtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I will merge this PR before introducing any breaking changes in the solution.

@mtojek mtojek merged commit bb5be79 into elastic:master Aug 5, 2020
@andrewkroh andrewkroh added Integration:suricata Suricata New Integration Issue or pull request for creating a new integration package. labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Integration:suricata Suricata New Integration Issue or pull request for creating a new integration package.

5 participants