There is an issue with the percent '%' character in log files. I ran into this because I was using a curl command, and curl was outputting % marks. There are a few ways around this.
The first is to modify the command/output to remove or change the percent.
Since I had a lot of old logs I wanted I wrote a script to modify them so they would upload.
#!/bin/bash
SAVE_IFS="$IFS"
IFS=$'
'
LOG_PATH='/Library/Application Support/JAMF/logs/'
LogFiles="`ls $LOG_PATH*.log`"
for i in $LogFiles; do
echo -n "working on "$i" "
perl -pi -e "s/%/~/g" $i
echo done
done
IFS=$SAVE_IFS
This can be an issue though. If you have a lot of logfiles you can slow down your JSS with the updates. (any 15 or whatever your duration, is when they will upload)
The issue I ran into with my script is that it didn't persevere the actual date ran. (unless it was in the log file) So you might want to add something that reads in the date of the log file and add's it to the file.
If you don't care about the old log files you can write a script to remove them, but you will need to fix any commands outputting percent's to either drop them or output something else.
If you care about the log files you will want to do some combination of everything.