# Is there any way to load elastic prebuilt rules by using command?

**URL:** <https://discuss.elastic.co/t/is-there-any-way-to-load-elastic-prebuilt-rules-by-using-command/363611>\
**Category:** Elastic Security\
**Created:** [July 23, 2024, 7:20am UTC](https://discuss.elastic.co/t/is-there-any-way-to-load-elastic-prebuilt-rules-by-using-command/363611 "2024-07-23T07:20:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lilyyy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lilyyy/32/51129_2.png) [@lilyyy](https://discuss.elastic.co/u/lilyyy)\
**Post date:** [July 23, 2024, 7:20am UTC](https://discuss.elastic.co/t/is-there-any-way-to-load-elastic-prebuilt-rules-by-using-command/363611/1 "2024-07-23T07:20:54Z")

</div>

Hello.

 ![Screenshot from 2024-07-23 15-48-56](https://us1.discourse-cdn.com/elastic/original/3X/1/3/134c6e0ac6fb24d2b9fa63c72dc828a916715d4b.png)

I can load Elastic prebuilt rules and timeline templates by clicking in kibana. But I want to know if I can load Elastic prebuilt rules and timeline templates by sending a command not click.

The reason why I ask is I'm gonna establish several systems and want the prebuilt rules to be loaded on all systems with a single command.

Thank you.

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [July 29, 2024, 9:38pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-load-elastic-prebuilt-rules-by-using-command/363611/2 "2024-07-29T21:38:10Z")

</div>

From #Kibana to #Elastic Security

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [July 29, 2024, 9:38pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-load-elastic-prebuilt-rules-by-using-command/363611/3 "2024-07-29T21:38:11Z")

</div>

Removed #elastic-stack-security

---

<div class="post-metadata">

**Author:** ![isorokopud](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/isorokopud/32/119989_2.png) [@isorokopud](https://discuss.elastic.co/u/isorokopud)\
**Post date:** [July 30, 2024, 8:49am UTC](https://discuss.elastic.co/t/is-there-any-way-to-load-elastic-prebuilt-rules-by-using-command/363611/4 "2024-07-30T08:49:19Z")

</div>

Hey @lilyyy thanks for reaching out!

You can use [these APIs](https://www.elastic.co/guide/en/security/current/prebuilt-rules-api.html) to load elastic prebuilt detection rules.

Let us know if that works and/or if you have more questions.

Thank you!

---

<div class="post-metadata">

**Author:** ![lilyyy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lilyyy/32/51129_2.png) [@lilyyy](https://discuss.elastic.co/u/lilyyy)\
**Post date:** [July 31, 2024, 8:08am UTC](https://discuss.elastic.co/t/is-there-any-way-to-load-elastic-prebuilt-rules-by-using-command/363611/5 "2024-07-31T08:08:14Z")

</div>

Oh there are APIs to load the prebuilt rules!  
Thank you so much!

---

<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:** [August 28, 2024, 8:08am UTC](https://discuss.elastic.co/t/is-there-any-way-to-load-elastic-prebuilt-rules-by-using-command/363611/6 "2024-08-28T08:08:41Z")

</div>

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