# Performance degraded after enabling x-pack security via logstash data ingestion into elasticsearch 6.8.0

**URL:** <https://discuss.elastic.co/t/performance-degraded-after-enabling-x-pack-security-via-logstash-data-ingestion-into-elasticsearch-6-8-0/187222>\
**Category:** Logstash\
**Created:** [June 25, 2019, 4:21am UTC](https://discuss.elastic.co/t/performance-degraded-after-enabling-x-pack-security-via-logstash-data-ingestion-into-elasticsearch-6-8-0/187222 "2019-06-25T04:21:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sureshrupnar](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@sureshrupnar](https://discuss.elastic.co/u/sureshrupnar)\
**Post date:** [June 25, 2019, 4:21am UTC](https://discuss.elastic.co/t/performance-degraded-after-enabling-x-pack-security-via-logstash-data-ingestion-into-elasticsearch-6-8-0/187222/1 "2019-06-25T04:21:24Z")

</div>

Hi Team,

Recently we have migrated from ELK 5.5.x to ELK 6.8.x.  
If we run logstash configuration file without x-pack basic security, then we are getting good performance.

But if we enable x-pack basic security and add security related parameters in logstash conf file, then performance goes down and data ingestion process running very slow.  
Below snippet we have added in input plugin -

> elasticsearch {  
> hosts =\> [@logstash\_elastic\_hosts@]  
> user =\> "@logstash-security-user@"  
> password =\> "@logstash-security-pswd@"  
> }

same is for filter and output plugin.

---

<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 23, 2019, 4:21am UTC](https://discuss.elastic.co/t/performance-degraded-after-enabling-x-pack-security-via-logstash-data-ingestion-into-elasticsearch-6-8-0/187222/2 "2019-07-23T04:21:25Z")

</div>

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