You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import rules from json, toml, yaml, or Kibana exported rule file(s).
78
78
79
79
Options:
80
-
--required-only Only prompt for required fields
81
-
-d, --directory DIRECTORY Load files from a directory
82
-
-h, --help Show this message and exit.
80
+
--required-only Only prompt for required fields
81
+
-d, --directory DIRECTORY Load files from a directory
82
+
-s, --save-directory DIRECTORY Save imported rules to a directory
83
+
-h, --help Show this message and exit.
83
84
```
84
85
85
86
The primary advantage of using this command is the ability to import multiple rules at once. Multiple rule paths can be
@@ -89,6 +90,8 @@ a combination of both.
89
90
In addition to the formats mentioned using `create-rule`, this will also accept an `.ndjson`/`jsonl` file
90
91
containing multiple rules (as would be the case with a bulk export).
91
92
93
+
The `-s/--save-directory` is an optional parameter to specify a non default directory to place imported rules. If it is not specified, the first directory specified in the rules config will be used.
94
+
92
95
This will also strip additional fields and prompt for missing required fields.
93
96
94
97
<aid="note-3">\* Note</a>: This will attempt to parse ALL files recursively within a specified directory.
@@ -286,6 +289,10 @@ _*To load a custom rule, the proper index must be setup first. The simplest way
286
289
the `Load prebuilt detection rules and timeline templates` button on the `detections` page in the Kibana security app._
287
290
288
291
292
+
_*To load a custom rule, the proper index must be setup first. The simplest way to do this is to click
293
+
the `Load prebuilt detection rules and timeline templates` button on the `detections` page in the Kibana security app._
294
+
295
+
289
296
### Using `import-rules`
290
297
291
298
This is a better option than `upload-rule` as it is built on refreshed APIs
0 commit comments