-
Notifications
You must be signed in to change notification settings - Fork 564
[Question] How to import rules from this repository in Kibana? #17
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
Comments
💯 glad to see you've done some sleuthing! I think we have most of the pieces in place for this — you probably noticed the wrapper around the Kibana API as well. For our initial release of the repository, we intentionally kept this out of scope. We just needed to get something released quickly and wanted to have a path for users like yourself to contribute directly to the released detection engine. This is a near-term priority for us. @brokensound77 and I are figuring out the details but most of the pieces are there. We know there is a need for many organizations like to synchronize their rules to/from git. Or at least to pull out of the platform and push back. It's hard to commit to a timeline, especially as we start wrapping up a release. But I think it's fair to say this is a "near-term" goal. We'll keep you posted! |
This is good news! Thank you for the quick response. |
Hi rw-access, I'm really happy to see you've added the
Are these features you are planning to implement? |
I am interested in trying to pick this issue up; But let's first have a look at what it is that's actually needed. We need a way to
This process should
This FR should not
I am purposefully leaving the original first requirement from @vedard out to scope the FR down. Looking forward to hearing what everyone thinks? |
@vedard does this work now for multiple upload? detection-rules/detection_rules/eswrap.py Line 231 in 464d5e6
@brokensound77 have you looked at this? |
@rw-access it does if you want to specify one or multiple files, but it would be nice to have an option upload all rules at once. I was able to do it by set |
This is similar to how it is done for detection-rules/detection_rules/main.py Lines 50 to 56 in 140091e
The glob pattern could be updated to |
I'm hesitant to make it this easy to automatically upload all of the rules with this workaround. It's beyond the initial scope of the command, and needs a more complete solution in place. This command is mostly to for testing, and there are no safeguards to make sure we don't create duplicate rules, and if you run the command twice, you get all of those rules as duplicates again. I think these are good use cases brought up by this issue, but they need a more complete workflow that I'm wondering if it would help with scoping to create another issue to track the complete workflow for synchronizing to/from a fork of this repo to a Kibana instance, or if this issue should be renamed |
After some thought I think it's a good idea to create a new issue (e.g: Functionality to sync between a git repository and Kibana) and determine the exact functionality, properties etc required to make that work in that issue. As to this specific issue, the original question/issue has been answered solved; My proposal would be to close this issue and reference it in the "new" issue. Decision is up to OP and you @rw-access |
I agree, the original question was answered. Feel free to close this issue when opening the new one. |
Hi Elastic, thanks you for opening this repository to the public.
I was wondering if it was possible to fork this repository, add some of our environment specific rules and import them in our Kibana instance.
It would improve our workflow:
I see there is a
build-release
command, but I'm not sure if I can import the generated package in Kibana or if it's only when you release a new version of KibanaThanks.
The text was updated successfully, but these errors were encountered: