-
Notifications
You must be signed in to change notification settings - Fork 468
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
[Windows] Simplifying Windows Events packages #4564
Comments
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
Any movement on this? 👀 |
Sorry @nicpenning, we haven't prioritised the Windows pacakge(s) improvements yet but may have an enhancement coming to address the inconsistent data streams problem. @P1llus do you think the dynamic ECS templates may address this problem to some degree? |
I think maybe the issue is a bit different than a usecase for the dynamic ECS template that is coming. I am unsure if I understood this right, on why you had to create custom indices for this. In the newer versions of integrations, there is a For the other comments around naming convention I think that is a separate issue that this issue is already tracking. |
I have started down the path of using the @Custom for mappings and pipelines, and they work. The enrichments require custom mappings. Which requires either adding the same mappings to the following:
Or adding a component template that has our enriched mappings to the managed index templates which I am unclear if this component template will get wiped out after upgrades or if it is a good practice at all:
It just seems very complicated to have to manage all of these pipelines and templates instead of doing it in 1 place. Right now, all of the @Custom pipelines point to other pipelines as I don't want to get stuck putting raw pipelines in the @Custom since those could change and I don't want to have to make 7 changes, so that is okay at the moment. We are running 8.6.0 and trying to replace winlogbeat still but it is way more effort than we had imagined just because we need custom pipelines and mappings that will persist after upgrades and are manageable. Is it recommended to modify the managed index templates to add component templates to them? The @Custom mappings is not ideal because it is a component template we can't add component templates too, thus, that is still 7 mappings that will need to change whenever we need new mappings. |
Unfortunately right now the only way to do this is indeed to manage it through I would not advice to modify the index templates at this point, that will most likely be overwritten on updates indeed. There are some efforts being done here to be able to set this per integration rather than per datastream only: elastic/kibana#146792 I have forwarded your comments and I think someone else might also give another comment here later. |
I am glad I am not the only one who is experiencing this. In the meanwhile, we really need to migrate so we will have to copy pasta our mappings across the 7 @Custom mappings to make due. I just hope the changes that come later make it easy to consolidate these integrations without much breakage. At least knowing that this needs to be done through the @Custom is helpful. But a standardized and streamlined way to handle Windows events is a big need in my opinion. |
@nicpenning You are definitively not the only one. This issue might also be of interest for you: elastic/kibana#146792 |
Thanks @ruflin! That appears to be the same issue that Marius posted. How would you like me to proceed to help with this conversation/issue? |
@nicpenning One question I have for you is: Would management per integration already be helfpul for you? In your example above, it would mean you do it 3 times instead of X times? |
3 is better than 7, however, here are some things to consider:
Hope this helps! |
Hi! We just realized that we haven't looked into this issue in a while. We're sorry! We're labeling this issue as |
I believe this is still relevant and at some point, I would like to see all Windows events in the Windows integration rather than the core Windows events in the System integration. Perhaps it can live in both. But when I find the time I can elaborate on the streamlined / simplification of all Windows events in the same integration instead of spread out across the 3 integrations (System, Windows, Custom Windows). With the move of AppLocker here this was a helpful. But Windows Defender and many other custom Windows Event logs should eventually be supported when they are built in. Such as WDAC, Terminal Services, etc.. I think Custom Windows Event logs integration is perfect for actual custom Windows event logs where system admins are creating their own channel and special event logs that only apply to their environment. But if any Windows Event log is natively in Windows, then ideally it should be in the Windows Integration. If I didn't know about Elastic Agent in the early days, it would be very confusing to know that the Windows Event Log ingestion capabilities exists across these 3 integrations. More to come on this, but I think there is great opportunity on this topic and am willing to collaborate and enhance Windows integrations. |
Totally agree Nic. Thanks for the additional feedback. @andrewkroh and I were just discussing a streamlined workflow for Windows events this week. Will let you know as soon as we have an update. |
Pinging @elastic/sec-windows-platform (Team:Security-Windows Platform) |
Any new index patterns will need adding to the security rules if winlogbeat is moved to windows. The system.security dataset name is a bit confusing as it doesn’t make it obvious this is the windows security event log data. Windows.security would be a better dataset. |
Any thoughts to moving/copying System, Application, and Security to the Windows Integration yet? If there was a way to centrally manage the same Integration code in both places I wouldn't mind having it in both spots and either/or could be enabled and have similar results. |
I’m pretty sure I enabled system security and Linux system/syslog on a Linux host recently and agent went unhealthy. Maybe the integrations in the system package aren’t OS aware. I create a policy for Linux and policy for windows. Both have metrics collection enabled, but we change the default metrics settings as those can cause serious performance issues on production servers running complex tasks. Moving system application and security to another integration and dataset will require changing the data_stream.dataset. All security rules, dashboards, saved search and any custom processing customers have built using this data would need updating when that happens. It’s going to be a lot of work…. Customers will need to be notified before this happens. |
Yes it be a lot of work, but likely manageable and worth it in the long run. Again they could be duplicated until everything is near perfect with lots of communication and migration docs, then deprecate it. |
Agree it would make it easier for users. I’d do it. |
Regarding rules, this site (https://elastic.github.io/detection-rules-explorer/) might be a little misleading since it only shows 1 rule with the "System" integration. Manually checking, it's much more than that. Using Windows as the source there are only 3, which is also not quite right. |
Windows Events are currently split across numerous packages:
- System: Application, System, Security Events
The rational behind including Windows events in the System integration was to ensure users automatically start ingesting Application, System and Security events as soon as Agent is installed. While this is valuable, it leads to confusion as users don't realise this is the case, and end up looking in the Windows integration for these sources.
- Windows: Forwarded Events, PowerShell and Sysmon
Should we consider splitting these data streams into standalone integrations, inline with other integrations?
- Custom Windows Events - anything outside the supported events in System and Windows integrations.
This integration currently limits users to just one event channel. This results in users having to maintain several integrations for Windows events, assuming they are collecting numerous event channels.
Feedback provided directly by @nicpenning:
This issue is intended to track discussions as to how we can streamline the discoverability and usability of Windows packages for both Elastic supported events/channels and custom Windows events.
The text was updated successfully, but these errors were encountered: