# Problems With Import-Rules and Create-Rules

**URL:** <https://discuss.elastic.co/t/problems-with-import-rules-and-create-rules/317410>\
**Category:** SIEM\
**Tags:** detection-rules\
**Created:** [October 25, 2022, 11:46am UTC](https://discuss.elastic.co/t/problems-with-import-rules-and-create-rules/317410 "2022-10-25T11:46:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omar\_E](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/omar_e/32/106217_2.png) [@Omar\_E](https://discuss.elastic.co/u/Omar_E)\
**Post date:** [October 25, 2022, 11:46am UTC](https://discuss.elastic.co/t/problems-with-import-rules-and-create-rules/317410/1 "2022-10-25T11:46:52Z")

</div>

I am currently trying to use the detection-rules CLI tool to import or create-rules from a JSON file. However, I keep getting the error below. Does anyone know how to fix this?

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/6/f/6fda162d354dc1c42187bd8253869ac9a52f4eb9.png)

---

<div class="post-metadata">

**Author:** ![wsouza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wsouza/32/92547_2.png) [@wsouza](https://discuss.elastic.co/u/wsouza)\
**Post date:** [November 12, 2022, 10:51pm UTC](https://discuss.elastic.co/t/problems-with-import-rules-and-create-rules/317410/2 "2022-11-12T22:51:34Z")

</div>

Maybe some library is missing for the compilation of the tool or indentation errors in the file. Have you tried using the Kibana interface?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 10, 2022, 10:51pm UTC](https://discuss.elastic.co/t/problems-with-import-rules-and-create-rules/317410/3 "2022-12-10T22:51:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
