dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

web-report (1848B)


      1 #!/bin/sh
      2 
      3 site="$(fzf < $XDG_DATA_HOME/web-report/sites)"
      4 action="cat /var/log/quark.%s/*.u /var/log/quark.%s/current 2>/dev/null     \
      5 	| grep '^[^ ]* [0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}' 2>/dev/null            \
      6 	| goaccess 2>/dev/null                                                  \
      7 		--exclude-ip 10.0.0.0-10.255.255.255                                \
      8 		--log-format='%%^ %%dT%%tZ\t%%h\t%%s\t%%v\t%%U'                     \
      9 		--date-format='%%Y-%%m-%%d'                                         \
     10 		--time-format='%%H:%%M:%%S'                                         \
     11 		--html-prefs='{                                                     \
     12 			\"theme\"               : \"darkBlue\",                         \
     13 			\"perPage\"             : 10,                                   \
     14 			\"layout\"              : \"horizontal\",                       \
     15 			\"showTables\"          : true,                                 \
     16 			\"visitors\"            : {                                     \
     17 				\"plot\"            : {                                     \
     18 					\"chartType\"   : \"area-spline\"                       \
     19 				}                                                           \
     20 			}                                                               \
     21 		}'                                                                  \
     22 		--ignore-panel='OS'                                                 \
     23 		--ignore-panel='BROWSERS'                                           \
     24 		--ignore-panel='VIRTUAL_HOSTS'                                      \
     25 		--ignore-panel='REFERRERS'                                          \
     26 		--ignore-panel='REFERRING_SITES'                                    \
     27 		--ignore-panel='KEYPHRASES'                                         \
     28 		-o html -"
     29 
     30 ssh anthra -t "$(printf "$action" "$site" "$site")" | vimb -c /dev/null -