Specify size in kilobytes with logrotate

Has anyone successfully configured logrotate using the size in
kilobytes??

I have broken this thing down as far as I can.

  • I setup a test server
  • I am running logrotate manually

I noticed while running it in debug mode:
rotating pattern: “/pathtologs/log/*.log” 1048576 bytes (5 rotations)
empty log files are rotated, only log files >= 5120 bytes are rotated,
old logs are removed

the first line states: 1048576 bytes
and the second line states: 5120 bytes

The log files are definitely larger than 5k. This has to be a bug. I
can absolutely get everything to work if I specify in M (Megabytes),
but, not in kilobytes.

Anyone with similar experience??

I really want to rotate my web server logs when they reach 500k.