Skip to content

Instantly share code, notes, and snippets.

@cb372
Created February 17, 2014 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cb372/9046464 to your computer and use it in GitHub Desktop.
Save cb372/9046464 to your computer and use it in GitHub Desktop.
Example Hydra job configuration file
{
type : "map",
source: {
type:"mesh2",
hash:true,
mesh: {
files:["hydra-input/*"]
},
format:{
type:"column",
tokens:{
separator:"\t",
},
columns:[
"TIME",
"IP",
"STATUS",
"SIZE",
"TIMETAKEN",
"FOO",
"METHOD",
"URL",
"QUERY",
"PROTOCOL",
"REFERER",
"USERAGENT",
"BAR",
"STATEKEY"
]
}
},
output : {
type: "tree",
root: {path : "ROOT" },
paths: {
"ROOT": [
{type:"branch", list:[[
{type : "const", value : "method"},
{type : "value", key : "METHOD"},
{type : "branch", list: [[
{type : "const", value: "status"},
{type : "value", key: "STATUS"}
]]}
],[
{type : "const", value : "useragent"},
{type : "value", key : "USERAGENT"}
],[
{type : "const", value : "ip"},
{type : "value", key : "IP"}
],[
{type : "const", value : "status"},
{type : "value", key : "STATUS"}
]]}
],
},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment