Accessing the Metric Insights Log files

Metric Insights has a number of different pieces to the application.  The log files generated by each of these programs help us to diagnose any issues you may be having with your installation of Metric Insights.  Below you'll find a list of the log files we use and where they are located.

We have included in your installation of Metric Insights a utility called package-log-files.sh to package these log files into an archive that you can then email to us.

1. Easiest way to access error Log files - via the Status Monitor

Easiest way to access error Log files - via the Status Monitor
  1. There is a Get error logs button on the Status Monitor page
  2. From the pop-up, you can download to yourself, send to our support team for assistance or both

2. Manually access Log Files

There are two groups of Log Files:

  • Debian
  • CentOS

2.1. Debian log files

1.  Apache error log

  • /var/log/apache2/error.log
  • /var/log/apache2/pyinsight-error.log
  • /var/log/apache2/ssl_access.log

2,   Report Generator Log – most recent file matching:

  • /var/www/generator/log/*.txt

3.  Data Fetch Request Broker Log: most recent file matching:

  • /var/www/iv/data/temp/broker/*.log

4.  Data Collector Logs – last 1000 lines ONLY from:

  • /var/log/insight/insight.log ==> var/log/insight/insight_most_recent_lines.log
  • /var/log/insight/query.log ==> var/log/insight/query_most_recent_lines.log

5.   Mysql:

  • /var/log/syslog

2.2. CentOS log files

1.  Apache error log

  • /var/log/httpd/error_log
  • /var/log/httpd/pyinsight-error.log
  • /var/log/httpd/ssl_access.log

2.  Report Generator Log – most recent file matching:

  • /var/www/generator/log/*.txt

3.  Data Fetch Request Broker Log: most recent file matching:

  • /var/www/iv/data/temp/broker/*.log

4.  Data Collector Logs – last 1000 lines ONLY from:

  • /var/log/insight/insight.log ==> var/log/insight/insight_most_recent_lines.log
  • /var/log/insight/query.log ==> var/log/insight/query_most_recent_lines.log

5.  Mysql:

  • /var/lib/mysql/hostname.err  [where hostname is the name of the server.]

2.3. package-log-files.sh Utility

  • Location: /usr/local/bin/package-log-files.sh</code>
  • Permissions: you must run it as root
  • Parameters: none
  • Output: tar.gz file named something like: "packaged_logs_20120501-115543.tar.gz" in the directory where you run it

3. Details for the Unix Challenged

If you are less familiar with UNIX, here are a few tips about this script.

It can be run from anywhere, such as your $HOME directory, as long as "/usr/local/bin" is in your $PATH.

To check to see if that is in your path, run " echo $PATH " from your command prompt as shown below:

NOTE:  Each directory is separated by a colon as shown in the command below:

 

kristi@localhost:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games

4. Run the Script

4.1. first command

Be sure that you are in the directory where you want the output file to be written; e.g., $HOME/logs

kristi@localhost:~$cd $HOME/logs

4.2. second command

Enter the following command from your command prompt:

sudo package-log-files.sh.
kristi@localhost:~/logs$ sudo package-log-files.sh
Packaging apache log files
tar: Removing leading `/' from member names
/var/log/apache2/error.log
tar: /var/log/apache2/ssl_error.log: Cannot stat: No such file or directory
/var/log/apache2/pyinsight-error.log
tar: Exiting with failure status due to previous errors
Packaging mysql log files
tar: Removing leading `/' from member names
/var/log/syslog
Packaging generator log files
tar: Removing leading `/' from member names
/var/www/generator/log/log-2012-05-04.txt
tar: Removing leading `/' from member names
/var/www/generator/log/log-2012-05-04-.txt
Packaging broker log files
tar: Removing leading `/' from member names
/var/www/iv/data/temp/broker/2012-05-04.log
Packaging Insight app log files
tar: Removing leading `/' from member names
/var/log/insight/insight_most_recent_lines.log
/var/log/insight/query_most_recent_lines.log
Compressing files
Your files are in the /home/kristi/logs/packaged_logs_20120504-061623.tar.gz

0 Comments

Add your comment

E-Mail me when someone replies to this comment