# ES|QL Get information about a grandparent process

**URL:** <https://discuss.elastic.co/t/es-ql-get-information-about-a-grandparent-process/371097>\
**Category:** Elastic Security\
**Tags:** esql\
**Created:** [November 26, 2024, 7:15pm UTC](https://discuss.elastic.co/t/es-ql-get-information-about-a-grandparent-process/371097 "2024-11-26T19:15:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![isugg](https://avatars.discourse-cdn.com/v4/letter/i/8797f3/32.png) [@isugg](https://discuss.elastic.co/u/isugg)\
**Post date:** [November 26, 2024, 7:15pm UTC](https://discuss.elastic.co/t/es-ql-get-information-about-a-grandparent-process/371097/1 "2024-11-26T19:15:41Z")

</div>

Hello! I have a PowerShell script that executes an encoded command that spawns some lolbin, let's say ipconfig. This is realized in Elastic as PowerShell spawning PowerShell, spawning ipconfig. I have an ES|QL detection that finds suspicious parent child processes, and am trying to tune the behavior. Is there a way to gather grandparent process information, if it is not in the original document?

---

<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:** [December 24, 2024, 7:16pm UTC](https://discuss.elastic.co/t/es-ql-get-information-about-a-grandparent-process/371097/2 "2024-12-24T19:16:07Z")

</div>

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