# I am the Watcher. I am your guide through this vast new twtiverse.
#
# Usage:
# https://watcher.sour.is/api/plain/users View list of users and latest twt date.
# https://watcher.sour.is/api/plain/twt View all twts.
# https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri.
# https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject.
#
# Options:
# uri Filter to show a specific users twts.
# offset Start index for quey.
# limit Count of items to return (going back in time).
#
# twt range = 1 1
# self = https://watcher.sour.is/conv/b3bt5qq
I've made this, and will create a script later:
awk -F'&\\^%' '/^\/~'"$SUDO_USER"'\// {print $2"\t"$3}' /var/log/nginx/twtxt.user.log
this way, any user can easily run the script, and get their twtxt user logs, without IPs, as the log format is the following:
$request_uri&^%$http_user_agent&^%$time_local&^%$remote_addr&^%
I don't know why at the end nginx adds sendfileon
so I put another delimiter to be able to get the last field easily