Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. READ MORE

Qlik Talend Integration: How to Delete Elasticsearch Logs Automatically?

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
Xiaodi_Shi
Support
Support

Qlik Talend Integration: How to Delete Elasticsearch Logs Automatically?

Last Update:

May 16, 2024 4:49:01 AM

Updated By:

Sonja_Bauernfeind

Created date:

May 16, 2024 3:44:00 AM

Elasticsearch logs are generated in the Logserver/elasticsearch-1.5.2/log directory. If the log files are not moved or deleted, disk space can fill up. Can Elasticsearch log files be purged automatically?

Resolution

Update the Elasticsearch log configuration, and use the MaxBackupIndex option to determine how many backup files are kept before the oldest is erased.

The Elasticsearch logs configuration can be found in Logserver/elasticsearch-1.5.2/config/logging.yml.

The default configuration is:

"
file:
type: dailyRollingFile
file: ${path.logs}/${cluster.name}.log
datePattern: "'.'yyyy-MM-dd"
layout:
type: pattern
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
"

With this configuration a file will be created every day in order to save the previous day's log. As a result, the number of log files will increase, and it can lead to the disk full problem.

To restrict the amount of backup files, set MaxBackupIndex:

  1. Stop these Talend services:

      Talend Log Server search engine

      Talend Log Server analytics and visualization platform

  2. Go to the <Talend_logserv_installation>elasticsearch-2.4.0\config\ folder.
  3. Open the logging.yml file and modify it as follows, adding maxFileSize and maxBackupIndex:
    "
    file:
    type: rollingFile
    file: ${path.logs}/${cluster.name}.log
    maxFileSize : 200KB
    maxBackupIndex: 4
    layout:
    type: pattern
    conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
    "
  4. Save the file and restart the services.

 

Related Content:

Qlik Talend Product: Reducing the logging threshold for Elasticsearch in Talend Log Server  

 

Environment

Talend Data Integration 

Labels (1)
Version history
Last update:
‎2024-05-16 04:49 AM
Updated by: