# Process log for logstash pipelines

**URL:** <https://discuss.elastic.co/t/process-log-for-logstash-pipelines/305376>\
**Category:** Logstash\
**Created:** [May 23, 2022, 8:05am UTC](https://discuss.elastic.co/t/process-log-for-logstash-pipelines/305376 "2022-05-23T08:05:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlk](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@karlk](https://discuss.elastic.co/u/karlk)\
**Post date:** [May 23, 2022, 8:05am UTC](https://discuss.elastic.co/t/process-log-for-logstash-pipelines/305376/1 "2022-05-23T08:05:50Z")

</div>

My goal is to make process log for any running process in ELK stack. Initially processes can be logged from Logstash pipelines and different Java processes.

Sample index in elastic for process logs could be something like this:

`StartTime | EndTime | ProcessName | Outcome`

**Question:** As logstash pipelines are adding each "event" in defined output index, such as

```auto
   output {
        elasticsearch {
            index => "my-index"
            hosts => "localhost:8080"
        }
    }

```

is there actually possibility to create _Started_ log before pipeline starts and _ended_ after pipeline ends/fails?

---

<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:** [June 20, 2022, 8:06am UTC](https://discuss.elastic.co/t/process-log-for-logstash-pipelines/305376/2 "2022-06-20T08:06:38Z")

</div>

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