Support » Plugin: Simple History » Best Way to automatically download log file.

  • Resolved maylife


    Hi Pär,

    I am trying to download the log file each day that simple history.
    At the moment we are doing this manually.
    Is there a good way to automatically do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pär Thernström


    Maybe using WP CLI together with a cron job or similar would work. You can get a list of your events in a nice table using for example

    wp simple-history list

    or use

    wp simple-history list --format=csv --count=50
    to get a list of the 50 latest events in CSV format.



    Hi Pär,

    You’re amazing 🙂
    Thank you for your help you have just saved me so much time.

    The data that is output by the CLI is a little different from the CSV but I actually like the condensed data from CLI more.

    I went with a Pull/Get method rather then a push (Cron) so if you have Plink installed (It’s Part of Putty) here is the PowerShell code I went with

    plink -ssh -i “Yourppk.ppk” USERNAME@ “wp simple-history list –format=csv –count=100 &” | Out-String | ConvertFrom-Csv


Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.