Need to send mongoDb logs to some port then that can be used in logstash

I am trying to send all mongoDb logs to some defined port
This is because I am using replication and sharding in this. So i want to collect all the logs at some port . I am right now using file input for logstash to read mongologs. But this is not the properway . Because everytime when I will add new replica set. I need to change the config file of logstash. So please guide me the way to achieve it and it there is some better way than this please tell me that too.

Can't you use wildcards in the file input's path option to match all possible log files? Then Logstash will periodically scan the disk and pick up new files.

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