Hi all, I am using Icecast 2.4.4 on Centos 7. This worked fine in the past on an old Windows machine but now I?m having issues getting the logs to change file size and name. I am trying to get my file size to be 2 MB <logging> <accesslog>access.log</accesslog> <errorlog>error.log</errorlog> <!-- <playlistlog>playlist.log</playlistlog> --> <loglevel>1</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error --> <logsize>2048</logsize> <!-- Max size of a logfile --> <!-- If logarchive is enabled (1), then when logsize is reached the logfile will be moved to [error|access|playlist].log.DATESTAMP, otherwise it will be moved to [error|access|playlist].log.old. Default is non-archive mode (i.e. overwrite) --> <logarchive>1</logarchive> </logging> What I am getting from this are file default file names: access.log-20190428 as well as large file sizes, up to 27MB Any ideas? Patricia Moynihan Director of Digital pmoynihan at fsu.edu<mailto:pmoynihan at fsu.edu> 850-645-6067 850-645-7200 WFSU Public Media 1600 Red Barber Plaza Tallahassee, FL 32310 wfsu.org<http://wfsu.org> [WFSU Public Media] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20190605/e550b560/attachment.htm>
Hi Patricia, On 6/5/19 4:26 PM, Patricia Moynihan wrote:> Hi all, > > I am using Icecast 2.4.4 on Centos 7. This worked fine in the past on > an old Windows machine but now I?m having issues getting the logs to > change file size and name. I am trying to get my file size to be 2 MB<snip />> What I am getting from this are file default file names:? > > access.log-20190428 as well as large file sizes, up to 27MBYes, it looks like CentOS is using "logrotate" - a standard tool for managing log file size and history. This is competing with the internal mechanism of Icecast that you enabled. My general recommendation is to use the system tooling and - if necessary - configure it to your needs. In case of Logrotate you can configure retention, compression and some other parameters. The built in Icecast functionality is mostly there to help people who deploy it outside of the operating system context or on Windows. For reference here's a link to RHEL 7 documentation (If you are running CentOS 8, you'll have to look for RHEL 8): https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/ch-viewing_and_managing_log_files Cheers, Thomas
Awesome I will read about that in a little bit here. Thank you for the tip! Patricia Moynihan Director of Digital pmoynihan at fsu.edu<mailto:pmoynihan at fsu.edu> 850-645-6067 850-645-7200 On Jun 6, 2019, at 2:11 AM, Thomas B. Rücker <thomas at ruecker.fi<mailto:thomas at ruecker.fi>> wrote: Hi Patricia, On 6/5/19 4:26 PM, Patricia Moynihan wrote: Hi all, I am using Icecast 2.4.4 on Centos 7. This worked fine in the past on an old Windows machine but now I’m having issues getting the logs to change file size and name. I am trying to get my file size to be 2 MB <snip /> What I am getting from this are file default file names: access.log-20190428 as well as large file sizes, up to 27MB Yes, it looks like CentOS is using "logrotate" - a standard tool for managing log file size and history. This is competing with the internal mechanism of Icecast that you enabled. My general recommendation is to use the system tooling and - if necessary - configure it to your needs. In case of Logrotate you can configure retention, compression and some other parameters. The built in Icecast functionality is mostly there to help people who deploy it outside of the operating system context or on Windows. For reference here's a link to RHEL 7 documentation (If you are running CentOS 8, you'll have to look for RHEL 8): https://urldefense.proofpoint.com/v2/url?u=https-3A__access.redhat.com_documentation_en-2Dus_red-5Fhat-5Fenterprise-5Flinux_7_html_system-5Fadministrators-5Fguide_ch-2Dviewing-5Fand-5Fmanaging-5Flog-5Ffiles&d=DwIGaQ&c=HPMtquzZjKY31rtkyGRFnQ&r=il3mbeSthlxEJd_b1NtmGe2biSOKp7VwqcXPdl2MdRc&m=fdI5MTFukqGmJlFcxCm99JAsnjH7yQCXIo_u0THZixc&s=z8EUVvbGaFOb88sadpikXx9kOhC3tll9TSgY9obgw8Q&e Cheers, Thomas _______________________________________________ Icecast mailing list Icecast at xiph.org<mailto:Icecast at xiph.org> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.xiph.org_mailman_listinfo_icecast&d=DwIGaQ&c=HPMtquzZjKY31rtkyGRFnQ&r=il3mbeSthlxEJd_b1NtmGe2biSOKp7VwqcXPdl2MdRc&m=fdI5MTFukqGmJlFcxCm99JAsnjH7yQCXIo_u0THZixc&s=yZLRjHoywhHYcvTKscPfh2er1F_Q8mXn-w3qejbuQdI&e -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/icecast/attachments/20190606/189bb2d0/attachment.html>