karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 106 forks source link

Logs are not registered #343

Open Aleksejs10 opened 3 years ago

Aleksejs10 commented 3 years ago

Hi,

Please help me to resolve the issue with the logs. They are not logged.

Admin web/Logs:

log

Access log unknown

Error log unknown

Playlist log unknown

I installed icecast-kh using this manual: https://ssamjh.nz/how-to-install-icecast-kh-on-ubuntu-server/

Default code snippets:

    <logdir>/usr/local/var/log/icecast</logdir>
    <webroot>/usr/local/share/icecast/web</webroot>
    <adminroot>/usr/local/share/icecast/admin</adminroot>

<security>
    <chroot>0</chroot>
    <!--
    <changeowner>
        <user>nobody</user>
        <group>nogroup</group>
    </changeowner>
    -->
</security>
Aleksejs10 commented 3 years ago

Dear forum visitors, please help me resolve the issue.

ssamjh commented 3 years ago

I've just found the solution. In your config set your logdir path to this: /var/log/icecast-kh

Then run these two commands to create the folder and assign permissions to the user we run icecast-kh under: mkdir -p /var/log/icecast-kh chown -R icecast:icecast /var/log/icecast-kh/

Then restart icecast-kh.

Aleksejs10 commented 3 years ago

Dear Friend, thank you very much! Now the logs are displayed. I would very much like to see in the logs: IP address of the person who listens to online radio, time and date of connection and disconnection from online radio. Is it possible to make such statistics? What would be the right solution for displaying statistics?