Upload Icecast Server Access Log to Remote Server

Upload Icecast Server Access Log to Remote Server #Icecast #Analytics #SaturdayMotivation #YouMadeMe https://t.co/1FOSy7wv2G

# curl -X POST -F ‘[email protected]/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}}