# Logstash input plugin with domain-joined service account

**URL:** <https://discuss.elastic.co/t/logstash-input-plugin-with-domain-joined-service-account/365338>\
**Category:** Logstash\
**Created:** [August 22, 2024, 6:42am UTC](https://discuss.elastic.co/t/logstash-input-plugin-with-domain-joined-service-account/365338 "2024-08-22T06:42:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rakesh\_Mukherjee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakesh_mukherjee/32/118164_2.png) [@Rakesh\_Mukherjee](https://discuss.elastic.co/u/Rakesh_Mukherjee)\
**Post date:** [August 22, 2024, 6:42am UTC](https://discuss.elastic.co/t/logstash-input-plugin-with-domain-joined-service-account/365338/1 "2024-08-22T06:42:46Z")

</div>

I'm using Logstash to pull logs from MySQL Database server. In the Logstash configuration file, I'm using a domain-joined service account for the DB server, but I'm encountering an authentication error in the log messages. Is there any guideline indicating that domain-joined service accounts might not work, and that I need to create a SQL account instead?

---

<div class="post-metadata">

**Author:** ![Alex\_Salgado-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_salgado-elastic/32/103081_2.png) [@Alex\_Salgado-Elastic](https://discuss.elastic.co/u/Alex_Salgado-Elastic)\
**Post date:** [August 22, 2024, 11:18am UTC](https://discuss.elastic.co/t/logstash-input-plugin-with-domain-joined-service-account/365338/2 "2024-08-22T11:18:35Z")

</div>

Hi @Rakesh_Mukherjee

Although it is technically possible to use domain-joined service accounts with MySQL, this usually requires additional configurations on the MySQL server, which can complicate the process.

The more practical and reliable solution is to create a native MySQL user account specifically for this purpose, if your organization's security policy allows it. This will simplify the integration with Logstash and reduce the likelihood of authentication issues.

---

<div class="post-metadata">

**Author:** ![Rakesh\_Mukherjee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakesh_mukherjee/32/118164_2.png) [@Rakesh\_Mukherjee](https://discuss.elastic.co/u/Rakesh_Mukherjee)\
**Post date:** [August 22, 2024, 3:44pm UTC](https://discuss.elastic.co/t/logstash-input-plugin-with-domain-joined-service-account/365338/3 "2024-08-22T15:44:07Z")

</div>

Thanks for the reply, will do as you suggested,. However, any chance that you have a sample configuration file with domain account?
