rovoda
rovoda

Reputation: 43

How to get performance of mongodb cluster from logs using mongodb keyhole?

I have installed Mongodb keyhole in my ubuntu server. Iam trying to analyze performance of a MongoDB cluster from the log file using the below command.

keyhole --loginfo log_file[.gz] [--collscan] [-v]

But the problem is iam getting the below error, eventhough the log file is same directory where iam running the command.Anyone please help me on this.

2022/10/12 11:20:45 open logfilename_mongodb.log.gz.[gz]: no such file or directory

I have fixed the issue with the below command format.

./keyhole -loginfo -v ~/Downloads/logfilepath.log

Upvotes: 0

Views: 346

Answers (1)

user20042973
user20042973

Reputation: 5090

Glancing at the Logs Analytics readme for the project, it looks like you've got a simple syntax issue here. The [] characters are intending to indicate optional arguments/settings to use when running keyhole.

Have you tried a syntax similar to this?

keyhole --loginfo log_file --collscan -v

Upvotes: 1

Related Questions