Support
 
Support Get Quote
 
 
 
 

Apache Tomcat Server Logs - How to add

Start free trial

To monitor Tomcat server logs, import the logs into EventLog Analyzer and extract the custom fields that are specific to Tomcat server logs.

Import Tomcat server logs

You can import tomcat server logs from a local, shared, or remote path, as well as from the cloud. To import logs from a local or shared path or the cloud, click here.

To import logs from a remote path, follow the given steps:

  • Navigate to the Import Configuration page using any one of the following menu options:
    • +Add >Import Logs
    • Settings > Configurations > Import Log Data
    • Home > Applications > Imported Logs
    • Home > Applications > Actions > +Import
Importing custom Logs
  • Importing log files from a remote path in EventLog Analyzer needs authentication. This authentication can be achieved in two ways:
    • Using password
    • Using SSH private key file sharing (Specific to SFTP protocol)

Password-based Authentication

  1. From the Browse Files option, select Remote Path.
  2. Enter the Device name from which you wish to import the log file. Alternatively, you can click on the + icon to browse and select the Windows device.
  3. Choose the required Protocol (Ethernet, FTP and SFTP) and enter the port number.
  4. Provide the Username of an account with admin privileged over the remote device.
  5. Select Password as the Authentication Type and enter the password, if you had chosen the SMTP protocol.
Password-based Authentication
  1. For other protocols, you can directly enter the Password.
Password-based Authentication
  1. Select the desired file from the device and click OK.
  2. Select the Log format from the drop-down. If you do not know the log format, select Automatically Identify.
  3. Browse and select the Associated Device.
  4. The Store Logs for Short-term option will store the imported log data in EventLog Analyzer for a brief period of two days. If the option is left unchecked, the logs will be stored as per your database retention configuration.
  5. If you would like to automate a log file import at regular time intervals, enable the Schedule Log Import option.
  6. With the Schedule drop-down menu, you can customize the time interval between each log file import.
  7. Additionally, you can build a Filename Pattern for the imported log files using the time format options given. The name of the file stored at the specified time will be updated in accordance to the file name pattern.
Password-based Authentication

SSH private key file sharing based authentication

  1. Select Remote Path from the Browse Files options listed.
  2. Enter the Device name from which you wish to import the log file. Alternatively, you can click on the + icon to browse and select the Windows device.
  3. Choose SFTP as the Protocol and enter the port number. (Default port value is 22)
  4. Provide the Username and choose Key File as the Authentication Type.

Note:
EventLog Analyzer supports OpenSSH key file format only.

  1. Browse and select the key file from the device. You can refer to this link to learn how to generate a key file with ssh-keygen, a standard component of Secure Shell protocol.
  2. If the key file is passphrase protected, select the Use Passphrase checkbox and enter the phrase in the field.
  3. Follow steps 7 to 13 under password authentication to complete log import.

Field extraction from logs

  • Under Selected files, click on the eye beside the required file.

Field extraction from logs

  • You can create a custom field by clicking on the tools icon at the top right corner of your log message. Follow the steps given in this page to use custom patterns for logs.

Field extraction from logs

  • You can see the created custom fields on the left pane.
  • Finally, click Save.
A Single Pane of Glass for Comprehensive Log Management