# Unable to use kafka input with SASL\_SSL

**URL:** https://discuss.elastic.co/t/unable-to-use-kafka-input-with-sasl-ssl/241785
**Category:** Logstash
**Created:** [July 19, 2020, 11:52am UTC](https://discuss.elastic.co/t/unable-to-use-kafka-input-with-sasl-ssl/241785 "2020-07-19T11:52:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![madhu72](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@madhu72](https://discuss.elastic.co/u/madhu72)
#### Post date: [July 19, 2020, 11:52am UTC](https://discuss.elastic.co/t/unable-to-use-kafka-input-with-sasl-ssl/241785/1 "2020-07-19T11:52:50Z")

</div>

I dont see any incoming data from Kafka to Kibana thru Logstash. I configured everything, and noticed that, it have  
`security.protocol = PLAINTEXT`

even I configured SASL\_SSL.

```auto
input {
	kafka {
sasl_mechanism => "SCRAM-SHA-512"
security_protocol => "SASL_SSL"
ssl_keystore_location => "/apps/kafka_2.12-2.5.0/config/keystore/kafka.keystore.jks"
			 ssl_keystore_password => "Test@123$"
			 ssl_truststore_location => "/apps/kafka_2.12-2.5.0/config/truststore/kafka.truststore.jks"
			 ssl_truststore_password => "Test@123$"
			bootstrap_servers => "192.168.168.96:9094"
			topics => ["amf-topic"]
jaas_path => "/opt/elk7/logstash-7.4.0/config/kafka_jass.conf"
			 decorate_events => true
	  auto_offset_reset => 'earliest'
	  type => "logs"
	}
}
filter {
grok {
				patterns_dir => ["/opt/elk7/logstash-7.4.0/patterns"]
				patterns_files_glob => "*"
		match => {
			"message" => "\[%{DATETIMEZONE}]\s\[%{LOG_LEVEL:Loglevel}]\s\(%{GREEDYDATA:Class}\.%{GREEDYDATA:Method}:%{DATA:LineNumber}\)\sreturning\slist:\s\[\{\"fname\":\"%{DATA:fname}\",\"msgid\":\"%{UUID:msgid}\",\"mtype\":\"%{DATA:mtype}\",\"path\":\"%{GREEDYDATA:Path}\",\"qtime\":\"%{DATA:qtime}\",\"receiver\":\"%{DATA:Receiver}\",\"sender\":\"%{DATA:Sender}\"\}\]"
				}
		add_field => { "eventName" => "SendFileDetails" }
	}
}
output {
   elasticsearch {
	  hosts => ["192.168.168.96:9200"]
	  index => "amf_ufa_test"
	  workers => 1
	}
}

```

---

<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: [August 16, 2020, 11:52am UTC](https://discuss.elastic.co/t/unable-to-use-kafka-input-with-sasl-ssl/241785/2 "2020-08-16T11:52:58Z")

</div>

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