Skip to main content
November 15, 2022
Question

readlog() plugin only reads the most recent log

  • November 15, 2022
  • 0 replies
  • 0 views

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()