# Send SQL script by filebeat

**URL:** <https://discuss.elastic.co/t/send-sql-script-by-filebeat/85387>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 11, 2017, 12:08pm UTC](https://discuss.elastic.co/t/send-sql-script-by-filebeat/85387 "2017-05-11T12:08:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilio](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@emilio](https://discuss.elastic.co/u/emilio)\
**Post date:** [May 11, 2017, 12:08pm UTC](https://discuss.elastic.co/t/send-sql-script-by-filebeat/85387/1 "2017-05-11T12:08:51Z")

</div>

Dear all,

I need to send SQL script by filebeat to ES.

How can i configure it through filebeat config?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [May 11, 2017, 4:20pm UTC](https://discuss.elastic.co/t/send-sql-script-by-filebeat/85387/2 "2017-05-11T16:20:45Z")

</div>

Can you elaborate a bit. Do you want to send a complete file to Elasticsearch?

Filebeat sends each line of a file as a separate document. It's intended for log files.

---

<div class="post-metadata">

**Author:** ![emilio](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@emilio](https://discuss.elastic.co/u/emilio)\
**Post date:** [May 16, 2017, 8:26am UTC](https://discuss.elastic.co/t/send-sql-script-by-filebeat/85387/3 "2017-05-16T08:26:40Z")

</div>

I need send SQL script as whole item, such as java stack trace.

On more question.

Can i send whole file to ES?

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [May 16, 2017, 12:32pm UTC](https://discuss.elastic.co/t/send-sql-script-by-filebeat/85387/4 "2017-05-16T12:32:50Z")

</div>

Best have a look at the multiline config options: [https://www.elastic.co/guide/en/beats/filebeat/current/multiline-examples.html](https://www.elastic.co/guide/en/beats/filebeat/current/multiline-examples.html)

---

<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:** [June 13, 2017, 12:41pm UTC](https://discuss.elastic.co/t/send-sql-script-by-filebeat/85387/5 "2017-06-13T12:41:59Z")

</div>

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