Application log file integration


(Siv) #1

Hi

I'm looking for solutions for 2 use cases

  1. Is there any plugin for mongo db to logstash? I want to import data into logstash and analyze it.

  2. My application written in Python/Django, now Im writing log files into files into local disk. Is there any way to move them to logstash?


(Magnus Bäck) #2
  1. There's no official MongoDB input plugin, but see https://github.com/phutchins/logstash-input-mongodb.
  2. Yes, use a file input. I'd use a custom JSON formatter on the Python side so that the logs can be ingested by Logstash without additional parsing.

(Siv) #3

Thank You

I believe file input will read from Log file hence there wont be any performance hit to my application. Is my understanding correct?


(Magnus Bäck) #4

Correct, although Filebeat or Logstash itself will require some system resources but unless you're logging a lot it'll be negligible.


(Siv) #5

Thank you.


(system) #6