EnglishFrenchSpanish

OnWorks favicon

varnishncsa - Online in the Cloud

Run varnishncsa in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command varnishncsa that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


varnishncsa - Display Varnish logs in Apache / NCSA combined log format

SYNOPSIS


varnishncsa [-a] [-C] [-d] [-D] [-F format] [-f formatfile] [-g <request|vxid>] [-h] [-n
name] [-N filename] [-P file] [-q query] [-r filename] [-t <seconds|off>] [-V] [-w
filename]

DESCRIPTION


The varnishncsa utility reads varnishd(1) shared memory logs and presents them in the
Apache / NCSA "combined" log format.

Each log line produced is based on a single Request type transaction gathered from the
shared memory log. The Request transaction is then scanned for the relevant parts in order
to output one log line. To filter the log lines produced, use the query language to select
the applicable transactions. Non-request transactions are ignored.

The following options are available:

-a When writing output to a file, append to it rather than overwrite it.

-C Do all regular expression and string matching caseless.

-d Start processing log records at the head of the log instead of the tail.

-D Daemonize.

-F format
Set the output log format string.

-f formatfile
Read output format from a file. Will read a single line from the specified file,
and use that line as the format.

-g <request|vxid>
The grouping of the log records. The default is to group by vxid.

-h Print program usage and exit

-n name
Specify the name of the varnishd instance to get logs from. If -n is not specified,
the host name is used.

-N filename
Specify the filename of a stale VSM instance. When using this option the
abandonment checking is disabled.

-P file
Write the process' PID to the specified file.

-q query
Specifies the VSL query to use.

-r filename
Read log in binary file format from this file. The file can be created with
varnishlog -w filename.

-t <seconds|off>
Timeout before returning error on initial VSM connection. If set the VSM connection
is retried every 0.5 seconds for this many seconds. If zero the connection is
attempted only once and will fail immediately if unsuccessful. If set to "off", the
connection will not fail, allowing the utility to start and wait indefinetely for
the Varnish instance to appear. Defaults to 5 seconds.

-V Print version information and exit.

-w filename
Redirect output to file. The file will be overwritten unless the -a option was
specified. If the application receives a SIGHUP in daemon mode the file will be
reopened allowing the old one to be rotated away. This option is required when
running in daemon mode.

FORMAT


Specify the log format used. If no format is specified the default log format is used.

The default log format is:

%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"

Escape sequences \n and \t are supported.

Supported formatters are:

%b Size of response in bytes, excluding HTTP headers. In CLF format, i.e. a '-'
rather than a 0 when no bytes are sent.

%D Time taken to serve the request, in microseconds.

%H The request protocol. Defaults to HTTP/1.0 if not known.

%h Remote host. Defaults to '-' if not known.

%I Total bytes received from client.

%{X}i The contents of request header X.

%l Remote logname (always '-')

%m Request method. Defaults to '-' if not known.

%{X}o The contents of response header X.

%O Total bytes sent to client.

%q The query string, if no query string exists, an empty string.

%r The first line of the request. Synthesized from other fields, so it may not be the
request verbatim.

%s Status sent to the client

%t 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).

%T Time taken to serve the request, in seconds.

%U The request URL without any query string. Defaults to '-' if not known.

%u Remote user from auth

%{X}x Extended variables. Supported variables are:

Varnish:time_firstbyte
Time from when the request processing starts until the first byte is sent to
the client.

Varnish:hitmiss
Whether the request was a cache hit or miss. Pipe and pass are considered
misses.

Varnish:handling
How the request was handled, whether it was a cache hit, miss, pass, pipe or
synth.

VCL_Log:key
Output value set by std.log("key:value") in VCL.

SIGNALS


SIGHUP Rotate the log file (see -w option)

SIGUSR1
Flush any outstanding transactions

Use varnishncsa online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OfficeFloor
    OfficeFloor
    OfficeFloor provides inversion of
    coupling control, with its: - dependency
    injection - continuation injection -
    thread injection For more information
    visit the...
    Download OfficeFloor
  • 2
    DivKit
    DivKit
    DivKit is an open source Server-Driven
    UI (SDUI) framework. It allows you to
    roll out server-sourced updates to
    different app versions. Also, it can be
    used fo...
    Download DivKit
  • 3
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 4
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 5
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • 6
    Stacer
    Stacer
    Linux System Optimizer and Monitoring
    Github Repository:
    https://github.com/oguzhaninan/Stacer.
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • More »

Linux commands

  • 1
    7za
    7za
    7za - A file archiver with highest
    compression ratio ...
    Run 7za
  • 2
    7zr
    7zr
    7zr - A file archiver with highest
    compression ratio ...
    Run 7zr
  • 3
    cpan
    cpan
    cpan - easily interact with CPAN from
    the command line ...
    Run cpan
  • 4
    cpan2debp
    cpan2debp
    dh-make-perl - Create debian source
    packages from Perl modules ...
    Run cpan2debp
  • 5
    fweelin
    fweelin
    freewheeling � live looping musical
    instrument ...
    Run fweelin
  • 6
    fwexec
    fwexec
    fwexec - program to upload and rexecute
    image file to a connected NXT device ...
    Run fwexec
  • More »

Ad