1

I have a question :

I`m using Elasticsearch.Net nugget with NLogs in order to send logs to my local Elasticsearch instance. Kibana is visualize them as well, so far soo good.

Is it possible using the same nugget to forwards logs to Logstash instance which is expose on my production environment instead to ElasticSearch

NDym
  • 79
  • 12

2 Answers2

0

The Elasticsearch.Net client can not directly write to logstash instances.

Martijn Laarman
  • 13,476
  • 44
  • 63
0

To add to Martijn's answer, you could use NLog to write logs to a local directory, then use Filebeat to ship those logs to Logstash.

Russ Cam
  • 124,184
  • 33
  • 204
  • 266
  • Is it possible to make your suggestion work if the application is put in Docker container ? – NDym Jul 27 '17 at 09:54
  • That's a different question :) Take a look at Docker's logging drivers for options for how to ship logs out of the container. – Russ Cam Jul 29 '17 at 08:21