# Can Logstash process archived data in the .tar.gz format?

**URL:** <https://discuss.elastic.co/t/can-logstash-process-archived-data-in-the-tar-gz-format/91029>\
**Category:** Logstash\
**Created:** [June 27, 2017, 9:58pm UTC](https://discuss.elastic.co/t/can-logstash-process-archived-data-in-the-tar-gz-format/91029 "2017-06-27T21:58:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eranlog](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@eranlog](https://discuss.elastic.co/u/eranlog)\
**Post date:** [June 27, 2017, 9:58pm UTC](https://discuss.elastic.co/t/can-logstash-process-archived-data-in-the-tar-gz-format/91029/1 "2017-06-27T21:58:51Z")

</div>

Hi,

I am trying to figure out a solution.

- Feed Logstash with .tar.gz archive
- Extract from .tar.gz archive files of interest
- output files of interest to Elasticsearch

Does LS have support for the .tar.gz format as input?  
If so how LS config looks like?

Thanks n advanced,

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 28, 2017, 3:38am UTC](https://discuss.elastic.co/t/can-logstash-process-archived-data-in-the-tar-gz-format/91029/2 "2017-06-28T03:38:37Z")

</div>

No, Logstash can't read files within tar.gz archives. You'll have to write a script that extracts the files into a temporary directory that Logstash can monitor.

---

<div class="post-metadata">

**Author:** ![eranlog](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@eranlog](https://discuss.elastic.co/u/eranlog)\
**Post date:** [June 28, 2017, 7:14am UTC](https://discuss.elastic.co/t/can-logstash-process-archived-data-in-the-tar-gz-format/91029/3 "2017-06-28T07:14:19Z")

</div>

Thanks a lot for your quick response,

---

<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:** [July 26, 2017, 7:14am UTC](https://discuss.elastic.co/t/can-logstash-process-archived-data-in-the-tar-gz-format/91029/4 "2017-07-26T07:14:30Z")

</div>

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