Logstash.bat generates new .jar files every time it is run

Hi,

I'm running logstash every minute via a task scheduler.
The task is to call logstash.bat with the appropriate .config file.
This is done every minute.
Logstash is generating a lot of files in TEMP folder every time it is run.
Is there a way to avoid this somehow, by running logstash somehow differently?

Welcome to our community! :smiley:

Why are you running it every minute?

I need the data to be refreshed every minute. This is done via a windows job which first deletes the index, and the refills it again, every minute.

If you can explain a little more what you are trying to achieve, maybe we can figure out a better way?

as simple as possible:
client app needs to get fresh data every minute from the stored procedure.
Right now, logstash is used to read the data from the DB and fill ES indexes, which are read from the client app.
This has to be done every minute, and every minute logstash is generating a jar file and a dll file in the TEMP folder. Eventually, the disk fills up completely.

Are you using the JDBC input? If so, then use https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html#_scheduling_2 instead.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.