Commit 628949aa authored by Geoff Simmons's avatar Geoff Simmons

govarnishlog supports log queries.

parent 134eeba1
......@@ -55,6 +55,7 @@ var (
grpf = flag.String("g", "vxid",
"<session|request|vxid|raw> Grouping mode")
verbose = flag.Bool("v", false, "Verbose record printing")
query = flag.String("q", "", "VSL query")
cpuprof = flag.String("cpuprofile", "", "write cpu profile to 'file'")
memprof = flag.String("memprofile", "", "write heap profile to 'file'")
......@@ -212,9 +213,9 @@ func main() {
os.Exit(-1)
}
defer c.Delete()
q, err := c.NewQuery(grp, "")
q, err := c.NewQuery(grp, *query)
if err != nil {
fmt.Fprintf(os.Stderr, "NewQuery():", err)
fmt.Fprintln(os.Stderr, "NewQuery():", err)
os.Exit(-1)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment