# Settings: Default pipeline workers: 2

**URL:** <https://discuss.elastic.co/t/settings-default-pipeline-workers-2/46128>\
**Category:** Logstash\
**Created:** [April 2, 2016, 10:15am UTC](https://discuss.elastic.co/t/settings-default-pipeline-workers-2/46128 "2016-04-02T10:15:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amin1](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Amin1](https://discuss.elastic.co/u/Amin1)\
**Post date:** [April 2, 2016, 10:15am UTC](https://discuss.elastic.co/t/settings-default-pipeline-workers-2/46128/1 "2016-04-02T10:15:22Z")

</div>

Hi  
My sample data is like follow

TransactionsPK,InsertTime,RetrivalRefNo,MsgType,TimeLocal,DateLocal,DateCaptured,TerminalID,CardAcqID,SystemTraceNo,Amount,TransType,PrimaryAccNo,PrimaryAccNoEnc,IssCode,ProcessingCode,PosCondition,Reciept,AcqCode,SettlementType  
D41E16F4-BAEB-E411-80C6-0050569F2C47,2015-04-26 06:51:33.763,320000050291,0210,06:51:32,2015-04-26,2015-04-26,C0000255,M00000000000093,000159,1000,1,505416\*\*\*\*\*\*2848,AaocywiSZBzCuhkEE4sfeA==,505416,000000,14,NULL,581672132,0001  
7DEC913D-BCEB-E411-80C6-0050569F2C47,2015-04-26 07:00:46.003,320000050292,0210,07:00:45,2015-04-26,2015-04-26,C0000388,M00000000000187,000057,25000,1,603799\*\*\*\*\*\*9794,vpYphJ4axQW9conblV39nQ==,603799,000000,14,NULL,581672132,0001

and my filter is :

input {  
file {  
path =\> '/root/datasample/transaction.csv'  
start\_position =\> beginning

```
}

```

}

filter  
{  
csv{  
columns =\>[  
'transactionspk',  
'inserttime',  
'retrivalrefno',  
'msgtype',  
'timeLocal',  
'dateLocal',  
'datecaptured',  
'terminalid',  
'cardacqid',  
'systemtraceNo',  
'amount',  
'transtype',  
'primaryaccNo',  
'primaryaccNoEnc',  
'isscode',  
'processingcode',  
'poscondition',  
'reciept',  
'acqcode',  
'settlementtype'  
]  
separator =\> ','  
remove\_field =\> ['message']  
}  
date {

```
		match => ['inserttime', 'yyyy-MM-dd HH:mm:ss.SSS']
		match => ['timeLocal', 'HH:mm:ss']
		match => ['dateLocal', 'yyyy-MM-dd']
		match => ['datecaptured', 'yyyy-MM-dd']
		
	}
	
mutate {

		convert =>{ 
		 "transactionspk" => "string" 
		 "retrivalrefno" => "float"
		 "msgtype" => "float"
		 "terminalid" => "string"
		 "cardacqid" => "string"
		 "systemtraceNo" =>"float"
		 "amount" => "float"
		 "transtype" => "float"
		 "primaryaccNo" => "string"
		"primaryaccNoEnc" => "string"
		 "isscode" => "float"
		 "processingcode" => "float"
		 "poscondition" => "float"
		 "reciept" => "string"
		"acqcode" => "float"
		"settlementtype" => "float" }
		  
					
		}

```

}

output {  
elasticsearch {

```
    hosts => 'localhost:9200'
    action => 'index'
}

```

}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 2, 2016, 2:47pm UTC](https://discuss.elastic.co/t/settings-default-pipeline-workers-2/46128/2 "2016-04-02T14:47:04Z")

</div>

Yes? Did you have a question?

---

<div class="post-metadata">

**Author:** ![Amin1](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Amin1](https://discuss.elastic.co/u/Amin1)\
**Post date:** [April 3, 2016, 3:13pm UTC](https://discuss.elastic.co/t/settings-default-pipeline-workers-2/46128/3 "2016-04-03T15:13:44Z")

</div>

Hi many thanks for reply I have problem to import my log to logstash and then elasticsearch.I attach log and my filter.i would be grateful if help me Best

---

<div class="post-metadata">

**Author:** ![Amin1](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Amin1](https://discuss.elastic.co/u/Amin1)\
**Post date:** [April 7, 2016, 4:58am UTC](https://discuss.elastic.co/t/settings-default-pipeline-workers-2/46128/4 "2016-04-07T04:58:06Z")

</div>

Hi all  
whats the meaning of "Default pipeline workers: 2" that is the result when is run logstash  
Best

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 7, 2016, 5:33am UTC](https://discuss.elastic.co/t/settings-default-pipeline-workers-2/46128/5 "2016-04-07T05:33:17Z")

</div>

> whats the meaning of "Default pipeline workers: 2" that is the result when is run logstash

This means that Logstash will use two concurrently executing pipelines for processing the events. The number of pipeline workers can be configured but gets a reasonable default value based on the number of CPUs the system has.

---

<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 6, 2017, 5:03am UTC](https://discuss.elastic.co/t/settings-default-pipeline-workers-2/46128/6 "2017-07-06T05:03:23Z")

</div>


