# Assigning common fields with series of process id

**URL:** https://discuss.elastic.co/t/assigning-common-fields-with-series-of-process-id/144777
**Category:** Logstash
**Created:** [August 16, 2018, 8:11pm UTC](https://discuss.elastic.co/t/assigning-common-fields-with-series-of-process-id/144777 "2018-08-16T20:11:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chandra0651](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandra0651/32/30484_2.png) [@chandra0651](https://discuss.elastic.co/u/chandra0651)
#### Post date: [August 16, 2018, 8:11pm UTC](https://discuss.elastic.co/t/assigning-common-fields-with-series-of-process-id/144777/1 "2018-08-16T20:11:03Z")

</div>

Hello i have a application where it will generate a process id for each log and one process id will be having 8 different stages of logs.But there is one specific field will be coming as part of 1st stage of log but remaining stages of log wont have that field . is there a way i can assign that specific field in stage one to all log files while ingesting as a field in logstash. The time gap between the each stage of log files is in milli seconds.

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [August 16, 2018, 8:17pm UTC](https://discuss.elastic.co/t/assigning-common-fields-with-series-of-process-id/144777/2 "2018-08-16T20:17:42Z")

</div>

Provided that log entries are never interleaved, and you use "--pipeline.workers 1" and do not use "--experimental-java-execution" you could do it using something similar to [this](https://discuss.elastic.co/t/logstash-data-between-start-and-end-transaction/143735/2?u=badger).

---

<div class="post-metadata">

### Author: ![chandra0651](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandra0651/32/30484_2.png) [@chandra0651](https://discuss.elastic.co/u/chandra0651)
#### Post date: [August 16, 2018, 8:27pm UTC](https://discuss.elastic.co/t/assigning-common-fields-with-series-of-process-id/144777/3 "2018-08-16T20:27:27Z")

</div>

Well no guaranty that logs are interleaved , no other way ☹

---

<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: [September 13, 2018, 8:27pm UTC](https://discuss.elastic.co/t/assigning-common-fields-with-series-of-process-id/144777/4 "2018-09-13T20:27:31Z")

</div>

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