# How to prettyprint logstash conf file

**URL:** <https://discuss.elastic.co/t/how-to-prettyprint-logstash-conf-file/201458>\
**Category:** Logstash\
**Created:** [September 27, 2019, 6:56pm UTC](https://discuss.elastic.co/t/how-to-prettyprint-logstash-conf-file/201458 "2019-09-27T18:56:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmiklas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmiklas/32/50730_2.png) [@kmiklas](https://discuss.elastic.co/u/kmiklas)\
**Post date:** [September 27, 2019, 6:56pm UTC](https://discuss.elastic.co/t/how-to-prettyprint-logstash-conf-file/201458/1 "2019-09-27T18:56:44Z")

</div>

Anyone know how to prettyprint these files?

I've tried a bunch of the online prettyprinters, using JSON, Ruby, C++, Python, and a few others... but they do weird things with comments.

How can I prettyprint these files? Thx Keith :^)

---

<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:** [October 25, 2019, 6:56pm UTC](https://discuss.elastic.co/t/how-to-prettyprint-logstash-conf-file/201458/2 "2019-10-25T18:56:44Z")

</div>

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