# Configure Logstash to send MS SQL ErrorLog

**URL:** <https://discuss.elastic.co/t/configure-logstash-to-send-ms-sql-errorlog/154794>\
**Category:** Logstash\
**Created:** [October 31, 2018, 9:42am UTC](https://discuss.elastic.co/t/configure-logstash-to-send-ms-sql-errorlog/154794 "2018-10-31T09:42:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mustapha\_MJ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mustapha_mj/32/37140_2.png) [@Mustapha\_MJ](https://discuss.elastic.co/u/Mustapha_MJ)\
**Post date:** [October 31, 2018, 9:42am UTC](https://discuss.elastic.co/t/configure-logstash-to-send-ms-sql-errorlog/154794/1 "2018-10-31T09:42:44Z")

</div>

Hi guys

i spend almost a week without result trying to find out how to send ErrorLogs of my MS SQL Server to Elasticsearch via logstash, in another word i want a logstash config file sample

---

<div class="post-metadata">

**Author:** ![Mike.Barretta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike.barretta/32/16688_2.png) [@Mike.Barretta](https://discuss.elastic.co/u/Mike.Barretta)\
**Post date:** [November 1, 2018, 8:38pm UTC](https://discuss.elastic.co/t/configure-logstash-to-send-ms-sql-errorlog/154794/2 "2018-11-01T20:38:10Z")

</div>

@Mustapha_MJ  
An easier option might be to use Filebeat to read the ErrorLogs from disk as a regular [log input](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html). From there, you'd have to parse the logs in Logstash (via [Logstash output](https://www.elastic.co/guide/en/beats/filebeat/current/logstash-output.html)) or Elasticsearch (via a [pipeline defined in Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html) and configured in the Filebeat [Elasticsearch output](https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#pipeline-option-es)) via grok or dissect.

[This MSSQLTips page](https://www.mssqltips.com/sqlservertip/2506/identify-location-of-the-sql-server-error-log-file/) describes how to find the logs on disk.

---

<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:** [November 29, 2018, 8:38pm UTC](https://discuss.elastic.co/t/configure-logstash-to-send-ms-sql-errorlog/154794/3 "2018-11-29T20:38:11Z")

</div>

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