OCTO_LOGROTATE(1)

πŸ“¦ version 1.0.6, in ubuntu jammy

✨ octo_logrotate(1) ✨

okay so bestie, welcome to the octo_logrotate page πŸ’… this one lives in the User Contributed Perl Documentation section of your man pages, so you know it's the good stuff. let's get into it 🫢


🌸 NAME 🌸

octo_logrotate β€” the Octopussy Logrotate program πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, octo_logrotate does one thing and it does it iconically: it deletes log files that are older than the number of days you defined in your Device configuration. that's it. that's the whole vibe. your logs get their little glow-up retirement party and then they're gone πŸ’€βœ¨

no cap, the day count comes from the Device config, so go check that if you're confused about why your logs keep vanishing.


πŸ’– FUNCTIONS πŸ’–

🌈 Get_Directories($dir)

returns a list of Directories from Directory $dir. yes literally just that. it goes in, it looks around, it hands you back the directories it found. main character behavior honestly πŸ‘‘

πŸ“ Get_Logrotate_Limit($service, $type, $conf)

gets the logrotate & limit values for Service $service 🧚

⭐ Rotate_Logs($device)

deletes Log Files for the specified Device $device. this is the one that actually does the deleting, so like... be aware. it's giving "the fun one at the party who also drives everyone home" 😭πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Sebastien Thebert <octo.devel@gmail.com> β€” the icon, the legend, the person who wrote all this πŸ’œ


🌟 SEE ALSO 🌟

go read these next, they're all in the same little family:

  • octo_dispatcher
  • octo_extractor
  • octo_parser
  • octo_uparser
  • octo_scheduler

iykyk πŸ¦‹


okay that's the whole page bestie, mwah πŸ’‹ this one's running on perl v5.22.2, it's dated 2016-05-04, and it's straight from the User Contributed Perl Documentation crew. periodt. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from