-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert Journald integration to input type #5890
Conversation
f227b90
to
6b28837
Compare
@jsoriano @hop-dev I think we need to quickly disucss the current spec/format for input packages before we merge this one. I want to see if we can clarify a few things we have issues with.
Looking at the log integration package, it is missing several crucial pieces, so we cant use that as a reference. I thought it would be quickest to discuss this quickly on slack, so we can get a good understanding of the intended format. |
It is mostly the same, yes. Regarding the spec intended format, you can see an input package as a single datastream.
In principle it is also the same, with files under the
According to the spec, in the same place as in integration packages, in
Are you missing other pieces apart of the ones you mention here?
Maybe we can schedule a meeting, including also @hop-dev and @ishleenk17. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Datastream name needs to be taken up as input from the user in your journald.yml.hbs file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For input packages, we let the user do all the fields mappings through Kibana.
We don't do any mapping of the processed data under fields (like done in input.yml).
Only very generic fields should be mapped here.
We don't get the sample event in the docs using the helpers, unlike in integrations. These are some of the input packages already implemented: All of them might not have system tests though. |
Happy to do that. |
Shouldn't we let elastic-package or fleet handle this? We already inject the UI elements to configure this, might as well also inject it into the config? Its easy to forget, because we have to remove the datastream settings from the manifest.yml, but keep it in the *.yml.hbs files. |
Fleet might be the right place to handle this for the input package. |
@ishleenk17 I have some doubts regarding this suggestion. I understand we want let the users do the mapping of non-generic fields. However there are certain fields in input.yml that always appear in events (e.g. |
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Let's do the planned manual tests first, then we can merge if its all working as intended.
Solved an issue with the mapping of Fixed at 892a487 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can just add the link to your E2E tests here it would be perfect!
Other than that, LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Package journald - 1.0.0 containing this change is available at https://epr.elastic.co/search?package=journald |
What does this PR do?
Convert the Journald integration to an input type package according to the specs located here.
It has also been moved to GA by bumping its version to 1.0.0.
Checklist
changelog.yml
file.Related issues
Screenshots