readlog() plugin only reads the most recent log

Certified Senior Developer

hi,

i am using log reader plugin to read rdbms logs,

the latest "rdbms-audit.log.yyy-MM-dd" is being read properly, find the code

readlog(
"audit/rdbms/rdbms-audit.log.yyy-MM-dd",
)

after 10mb size limit the log is getting rotated and is changed to "rdbms-audit.log.yyy-MM-dd.1" and

readlog(
"audit/rdbms/rdbms-audit.log.yyy-MM-dd.1",
)

is not returning any data

Can someone please let me know how to read the "rdbms-audit.log.yyy-MM-dd.1" log using readlog()

  Discussion posts and replies are publicly visible