# Apache NiFI to Logstash

**URL:** <https://discuss.elastic.co/t/apache-nifi-to-logstash/121066>\
**Category:** Logstash\
**Created:** [February 22, 2018, 2:54pm UTC](https://discuss.elastic.co/t/apache-nifi-to-logstash/121066 "2018-02-22T14:54:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sm00thindian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sm00thindian/32/27376_2.png) [@sm00thindian](https://discuss.elastic.co/u/sm00thindian)\
**Post date:** [February 22, 2018, 2:54pm UTC](https://discuss.elastic.co/t/apache-nifi-to-logstash/121066/1 "2018-02-22T14:54:08Z")

</div>

I am looking to securely send data from my dynamic workflow tool Apache NiFi to Logstash. What are effective methods of accomplishing this?

-krw

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 22, 2018, 3:54pm UTC](https://discuss.elastic.co/t/apache-nifi-to-logstash/121066/2 "2018-02-22T15:54:21Z")

</div>

Depending on what you put into "securely" perhaps shipping the text logs with Filebeat and enabling TLS peer verification would suffice?

---

<div class="post-metadata">

**Author:** ![sm00thindian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sm00thindian/32/27376_2.png) [@sm00thindian](https://discuss.elastic.co/u/sm00thindian)\
**Post date:** [February 22, 2018, 3:57pm UTC](https://discuss.elastic.co/t/apache-nifi-to-logstash/121066/3 "2018-02-22T15:57:19Z")

</div>

Is there a way to go from NiFi directly to Logstash without dropping a file? @magnusbaeck

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 22, 2018, 4:12pm UTC](https://discuss.elastic.co/t/apache-nifi-to-logstash/121066/4 "2018-02-22T16:12:49Z")

</div>

There's probably a way but I don't know how NiFi's logging can be configured.

I don't recommend it though. What happens if Logstash is down or there are network connectivity problems? Will the application hang? Will it drop log entries?

---

<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:** [March 22, 2018, 4:13pm UTC](https://discuss.elastic.co/t/apache-nifi-to-logstash/121066/5 "2018-03-22T16:13:26Z")

</div>

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