Filebeat pods memory usage increase over time

memory usage of filebeat pod which has high number of logs processing is increasing over time.


if the filebeat pod is restarted the memory comes down and again starts increasing.
This behaviour is observed if cpu usage of filebeat pod is high.
Does this mean filebeat pod stores unprocessed logs in memory and are lost if filebeat pod is restarted?