Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
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
unique-xids
Commits
0471b9bf
Commit
0471b9bf
authored
Jan 16, 2012
by
Tollef Fog Heen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for the %{format}t construct to varnishncsa
parent
ca587d13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
varnishncsa.c
bin/varnishncsa/varnishncsa.c
+5
-0
varnishncsa.rst
doc/sphinx/reference/varnishncsa.rst
+5
-0
No files found.
bin/varnishncsa/varnishncsa.c
View file @
0471b9bf
...
...
@@ -757,6 +757,11 @@ h_ncsa(void *priv, enum VSL_tag_e tag, unsigned fd,
VSB_cat
(
os
,
h
?
h
:
"-"
);
p
=
tmp
;
break
;
case
't'
:
strftime
(
tbuf
,
sizeof
tbuf
,
fname
,
&
lp
->
df_t
);
VSB_cat
(
os
,
tbuf
);
p
=
tmp
;
break
;
case
'x'
:
if
(
!
strcmp
(
fname
,
"Varnish:time_firstbyte"
))
{
VSB_cat
(
os
,
lp
->
df_ttfb
);
...
...
doc/sphinx/reference/varnishncsa.rst
View file @
0471b9bf
...
...
@@ -90,6 +90,11 @@ The following options are available:
Time when the request was received, in HTTP date/time
format.
%{X}t
Time when the request was received, in the format
specified by X. The time specification format is the
same as for strftime(3).
%U
The request URL without any query string. Defaults to
'-' if not known.
...
...
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