Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
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
uplex-varnish
varnishevent3
Commits
7f9e626a
Commit
7f9e626a
authored
Jan 21, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishevent formats %q
parent
2a48ae9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
writer.c
bin/varnishevent/writer.c
+13
-8
No files found.
bin/varnishevent/writer.c
View file @
7f9e626a
...
...
@@ -83,7 +83,8 @@ static unsigned wrt_nfree;
output string can just be formatted with VSB_vprintf(), and the
reader can be limited to only read the needed tags. */
static
const
char
*
cformat
;
static
const
char
*
bformat
=
"%t url=[%U] rc=[%s] len=[%b] xid=[%{X-Varnish}i]"
;
static
const
char
*
bformat
=
"%t dir=%d url=[%U] qs=[%q] rc=[%s] len=[%b] xid=[%{X-Varnish}i]"
;
static
struct
vsb
*
os
;
...
...
@@ -240,15 +241,17 @@ wrt_write_client(logline_t *ll)
VSB_REC_CAT
(
os
,
ll
->
tag
[
SLT_RxRequest
]);
break
;
#if 0
case 'q':
case
'q'
:
{
char
*
qs
=
NULL
;
qs
=
memchr
(
ll
->
tag
[
SLT_RxURL
].
data
,
'?'
,
ll
->
tag
[
SLT_RxURL
].
len
);
if
(
qs
!=
NULL
)
VSB_cat(os, qs);
VSB_bcat
(
os
,
qs
+
1
,
ll
->
tag
[
SLT_RxURL
].
len
-
(
qs
-
ll
->
tag
[
SLT_RxURL
].
data
)
-
1
);
break
;
}
#if 0
case 'r':
/*
* Fake "%r". This would be a lot easier if Varnish
...
...
@@ -470,15 +473,17 @@ wrt_write_backend(logline_t *ll)
VSB_REC_CAT
(
os
,
ll
->
tag
[
SLT_TxRequest
]);
break
;
#if 0
case 'q':
case
'q'
:
{
char
*
qs
=
NULL
;
qs =
strchr(ll->tag[SLT_TxURL], '?'
);
qs
=
memchr
(
ll
->
tag
[
SLT_TxURL
].
data
,
'?'
,
ll
->
tag
[
SLT_TxURL
].
len
);
if
(
qs
!=
NULL
)
VSB_cat(os, qs);
VSB_bcat
(
os
,
qs
+
1
,
ll
->
tag
[
SLT_TxURL
].
len
-
(
qs
-
ll
->
tag
[
SLT_TxURL
].
data
)
-
1
);
break
;
}
#if 0
case 'r':
/*
* Fake "%r". This would be a lot easier if Varnish
...
...
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