# Export rules into excel or CSV or PDF format

**URL:** <https://discuss.elastic.co/t/export-rules-into-excel-or-csv-or-pdf-format/311180>\
**Category:** SIEM\
**Created:** [August 2, 2022, 7:52am UTC](https://discuss.elastic.co/t/export-rules-into-excel-or-csv-or-pdf-format/311180 "2022-08-02T07:52:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunith](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@sunith](https://discuss.elastic.co/u/sunith)\
**Post date:** [August 2, 2022, 7:52am UTC](https://discuss.elastic.co/t/export-rules-into-excel-or-csv-or-pdf-format/311180/1 "2022-08-02T07:52:39Z")

</div>

Hi,  
Kindly let me know is there a way to export all rules into readable CSV or excel or PDF format?  
Or is there a way to convert .ndjson export format to CSV or excel?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![madi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/madi/32/75699_2.png) [@madi](https://discuss.elastic.co/u/madi)\
**Post date:** [August 2, 2022, 2:41pm UTC](https://discuss.elastic.co/t/export-rules-into-excel-or-csv-or-pdf-format/311180/2 "2022-08-02T14:41:36Z")

</div>

Hi @sunith! Thanks for your question.

I'm not aware of a way to export rules to CSV or PDF, but there are several tools that can convert .ndjson files to CSV. Here is one that I found: [ndjson-to-csv - npm](https://www.npmjs.com/package/ndjson-to-csv)

Let me know if this meets your needs!  
Madi

---

<div class="post-metadata">

**Author:** ![sunith](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@sunith](https://discuss.elastic.co/u/sunith)\
**Post date:** [August 3, 2022, 6:29am UTC](https://discuss.elastic.co/t/export-rules-into-excel-or-csv-or-pdf-format/311180/3 "2022-08-03T06:29:54Z")

</div>

Hi Madi,

Thanks for sharing. I have a query it looks like there are few commands I need to run could you confirm where should I run this command to install ndjson-to-csv package is it on Linux? or python?

---

<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 31, 2022, 6:30am UTC](https://discuss.elastic.co/t/export-rules-into-excel-or-csv-or-pdf-format/311180/4 "2022-08-31T06:30:15Z")

</div>

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