Log-analyzer add command not working

I am trying to add logs to Log-analyzer for analysis. Even my aerospike logs are at /var/log/aerospike/, it’s saying incorrect log file path.

Am using the below versions aerospike-server-enterprise-5.1.0.5-1.el7.x86_64 aerospike-tools-3.29.0-1.el7.x86_64 Aerospike Log Analyzer Shell, version 0.5.4

Log-analyzer> add /var/log/aerospike

ERROR: Incorrect log file path '/var/log/aerospike' specified. Use add command to add log files.

Log-analyzer> add '/var/log/aerospike/'

ERROR: Incorrect log file path '/var/log/aerospike/' specified. Use add command to add log files.

Log-analyzer> add '/var/log/aerospike/aerospike.log'

ERROR: Incorrect log file path '/var/log/aerospike/aerospike.log' specified. Use add command to add log files.

Log-analyzer> add /var/log/aerospike/aerospike.log

ERROR: Incorrect log file path '/var/log/aerospike/aerospike.log' specified. Use add command to add log files.

The problem here is how we logged into the Log-analyzer

asadm --auth EXTERNAL_INSECURE -U -P -h -p -l

it straightaway logged into the Log-analyzer shell without asking for the password to enter to connect through the VIP. So it does not know what the underlying nodes are.

Can you please check why it is not asking for the password to enter.

The Log-analyzer works locally only (doesn’t connect to the servers).

You would need to download the logs from the servers to your local machine.

The way I use this is by having all the logs in a local directory and then:

asadm -lf .

from that directory… You would need to rename the log files to do that.

For example:

Mehers-MacBook-Pro:loganalyzer meher$ asadm -lf .
WARNING: No module named toml. Skipping Config file read.
Seed:        [('127.0.0.1', 3000, None)]
Config_file: None
Aerospike Log Analyzer Shell, version

INFO: Added Log File ./1001.log.
INFO: Added Log File ./1002.log.
INFO: Added Log File ./1003.log.
INFO: Added Log File ./1004.log.
INFO: Added Log File ./1005.log.
INFO: Added Log File ./1006.log.
Log-analyzer>
© 2015 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.