Upload Icecast Server Access Log to Remote Server #Icecast #Analytics #SaturdayMotivation #YouMadeMe https://t.co/1FOSy7wv2G pic.twitter.com/4Cq113jDfz
— HTML5 Player ♫ ♪ (@HTML5MP3Player) June 16, 2018
# curl -X POST -F ‘log=@/var/log/icecast2/access.log’ http://remote-server-ip/logs/upload.php
PHP $_FILES
………..
Array(
“log”: array(
“name” => “access.log”
“type” => “application/octet-stream”,
“tmp_name” => “/tmp/phpXpTKre”,
“error” => 0,
“size” => 4287878
)
)
PHP $_FILES json_encode
…………………..
{“log”:{“name”:”access.log”,”type”:”application\/octet-stream”,”tmp_name”:”\/tmp\/phpXpTKre”,”error”:0,”size”:4287878}}