# Parsing hierarchical data using logstash

**URL:** <https://discuss.elastic.co/t/parsing-hierarchical-data-using-logstash/74056>\
**Category:** Logstash\
**Created:** [February 6, 2017, 1:01pm UTC](https://discuss.elastic.co/t/parsing-hierarchical-data-using-logstash/74056 "2017-02-06T13:01:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GautamP](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@GautamP](https://discuss.elastic.co/u/GautamP)\
**Post date:** [February 6, 2017, 1:01pm UTC](https://discuss.elastic.co/t/parsing-hierarchical-data-using-logstash/74056/1 "2017-02-06T13:01:11Z")

</div>

Continuing the discussion from [Recursive nested documents in elasticsearch](https://discuss.elastic.co/t/recursive-nested-documents-in-elasticsearch/74048/7):

Hi all,

I would like to parse a log file containing hierarchical data as mentioned in [Recursive nested documents in elasticsearch](https://discuss.elastic.co/t/recursive-nested-documents-in-elasticsearch/74048/7). I would like to have the logstash index pattern split the data such that each document representing a sub job is related to a document representing the respective super job and I would like to use this relation to obtain the job times of different jobs on different hierarchical levels.

As mentioned in [Recursive nested documents in elasticsearch](https://discuss.elastic.co/t/recursive-nested-documents-in-elasticsearch/74048/7), I would like to represent the job names and their corresponding job times on a graph with the ability to drill down to various levels to view the job times at various levels. I am not able to figure out how to use logstash to its best in order to achieve this. I would appreciate any suggestion on this matter.

Thanks in advance

---

<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:** [March 6, 2017, 1:01pm UTC](https://discuss.elastic.co/t/parsing-hierarchical-data-using-logstash/74056/2 "2017-03-06T13:01:20Z")

</div>

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