# Change pipeline worker node to provide sequence of logs in kibana

**URL:** <https://discuss.elastic.co/t/change-pipeline-worker-node-to-provide-sequence-of-logs-in-kibana/188536>\
**Category:** Logstash\
**Created:** [July 2, 2019, 2:55pm UTC](https://discuss.elastic.co/t/change-pipeline-worker-node-to-provide-sequence-of-logs-in-kibana/188536 "2019-07-02T14:55:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrashid](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mrashid](https://discuss.elastic.co/u/mrashid)\
**Post date:** [July 2, 2019, 2:55pm UTC](https://discuss.elastic.co/t/change-pipeline-worker-node-to-provide-sequence-of-logs-in-kibana/188536/1 "2019-07-02T14:55:44Z")

</div>

I tried to configure the pipeline worker node by changing from the default of 1. This is to provide solution to the issue where logs are not in sequence in kibana.

I have followed suggestion from the below already logged issue.

Continuing the discussion from [How to process messages strictly in the order they arrive?](https://discuss.elastic.co/t/how-to-process-messages-strictly-in-the-order-they-arrive/56790/2):

I tried to set the pipeline worker by doing the following in logstash.yml :

**pipeline.workers: -w '1'**

However it gives the following error :  
[2019-07-02T14:45:40,553][FATAL][logstash.runner] An unexpected error occurred! {:error=\>#\<ArgumentError: Failed to coerce value to Integer. Received -w '1'

**What am I doing wrong ?** @magnusbaeck

---

<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:** [July 2, 2019, 3:15pm UTC](https://discuss.elastic.co/t/change-pipeline-worker-node-to-provide-sequence-of-logs-in-kibana/188536/2 "2019-07-02T15:15:10Z")

</div>

'-w 1' is a command line option. In logstash.yml you would just need

```
pipeline.workers: 1
```

---

<div class="post-metadata">

**Author:** ![mrashid](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@mrashid](https://discuss.elastic.co/u/mrashid)\
**Post date:** [July 2, 2019, 3:30pm UTC](https://discuss.elastic.co/t/change-pipeline-worker-node-to-provide-sequence-of-logs-in-kibana/188536/3 "2019-07-02T15:30:30Z")

</div>

Thanks for responding back. '1' is the default option . So I don't need to change anything if I don't need multiple pipeline.This is according to documentation. Will that be the way to go ?

---

<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:** [July 2, 2019, 3:52pm UTC](https://discuss.elastic.co/t/change-pipeline-worker-node-to-provide-sequence-of-logs-in-kibana/188536/4 "2019-07-02T15:52:09Z")

</div>

The default value is equal to the number of CPUs on your system, so if you have a single CPU you do not need to change anything.

---

<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 30, 2019, 3:52pm UTC](https://discuss.elastic.co/t/change-pipeline-worker-node-to-provide-sequence-of-logs-in-kibana/188536/5 "2019-07-30T15:52:09Z")

</div>

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