Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
464ef5d6
Commit
464ef5d6
authored
Feb 28, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update azbyka_stat
parent
c7cbdd45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
make_apache_errors.sh
web/azbyka_stat/make_apache_errors.sh
+4
-0
make_nginx_azbyka-audio.sh
web/azbyka_stat/make_nginx_azbyka-audio.sh
+8
-2
No files found.
web/azbyka_stat/make_apache_errors.sh
View file @
464ef5d6
...
...
@@ -17,6 +17,10 @@ for i in /azbyka/*/log/*_error.log ; do
echo
echo
"
$i
"
cat
$0
.tmp
echo
done
>>
$NS
rm
-f
$0
.tmp
tail
/azbyka/azbyka_otechnik/tmp/logs/calibre_worker.log
-n100
>>
$NS
web/azbyka_stat/make_nginx_azbyka-audio.sh
View file @
464ef5d6
...
...
@@ -11,6 +11,12 @@ format()
xargs
printf
"%5d %-100s %s
\n
"
}
dodirname
()
{
# FIXME: xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
xargs
-r
dirname
2>/dev/null
}
for
i
in
$IN
;
do
echo
>>
$NS
...
...
@@ -34,7 +40,7 @@ for i in $IN ; do
#cat $i |
tail
$i
-n3000
| perl
-p
-e
's|.*"GET (.*) HTTP.*|\1|g'
|
sort
|
uniq
-c
|
sort
-n
-r
|
head
-n
15 |
sed
-e
"s|/audio/audio1||g"
>>
$NS
echo
>>
$NS
tail
$i
-n3000
| perl
-p
-e
's|.*"GET (.*) HTTP.*|\1|g'
|
xargs
-r
dirname
|
sort
|
uniq
-c
|
sort
-n
-r
|
head
-n
15 |
sed
-e
"s|/audio/audio1||g"
>>
$NS
tail
$i
-n3000
| perl
-p
-e
's|.*"GET (.*) HTTP.*|\1|g'
|
do
dirname |
sort
|
uniq
-c
|
sort
-n
-r
|
head
-n
15 |
sed
-e
"s|/audio/audio1||g"
>>
$NS
echo
>>
$NS
tail
$i
-n3000
| perl
-p
-e
's|.*"GET (.*) HTTP.*|\1|g'
|
xargs
-r
dirname
| xargs
-r
dirname
|
sort
|
uniq
-c
|
sort
-n
-r
|
head
-n
15 |
sed
-e
"s|/audio/audio1||g"
>>
$NS
tail
$i
-n3000
| perl
-p
-e
's|.*"GET (.*) HTTP.*|\1|g'
|
dodirname | do
dirname |
sort
|
uniq
-c
|
sort
-n
-r
|
head
-n
15 |
sed
-e
"s|/audio/audio1||g"
>>
$NS
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment