storm-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stig Rohde Døssing <>
Subject Re: Removing old logs from supervisor machine
Date Thu, 04 Apr 2019 10:38:32 GMT
I believe this is handled by the Logviewer daemon. If you run "storm
logviewer" on your worker machines, the Logviewer daemon will periodically
delete old topology directories.

Take a look at
to see how this works.

Den tor. 4. apr. 2019 kl. 10.53 skrev Mohit Goyal <>:

> Hi,
> I'm using log4j to log all my topology logs in apache storm. Using the
> following standard format I'm generating appender files:
>> fileName="${sys:workers.artifacts}/${
>> }/${sys:worker.port}/${}"
>> filePattern="${sys:workers.artifacts}/${
>> }/${sys:worker.port}/${}.%i">
>  Now the problem I'm facing here is that if I deploy any topology again, it'll create
a separate folder and create log files in that folder since the new topology will have different
value of * <>* field. This way my supervisor machine will
still have logs from older version of topology, which over the time accumulates and cause
me some memory issues. Has anyone hare faced this issue and what can be the possible solution.
One solution can be that I remove * <>* field from filename
but since I've several topologies running, I don't want to remove topology name from my log
file path.
> Thanks and regards,
> Mohit Goyal

View raw message