Skip to content

Instantly share code, notes, and snippets.

@lennartkoopmann
Created August 10, 2013 22:24
Show Gist options
  • Save lennartkoopmann/6202448 to your computer and use it in GitHub Desktop.
Save lennartkoopmann/6202448 to your computer and use it in GitHub Desktop.
lennart ~/workspace/graylog2/graylog2-web-interface(play)$ curl -XGET http://127.0.0.1:12900/system/inputs/2195083a-5cdf-442d-bc73-d1adf2f298a8/extractors?pretty=true -p0
{
"total" : 2,
"extractors" : [ {
"target_field" : "user_id_2",
"id" : "b712bbe0-720f-4f0f-a7bf-1bf3a36bace0",
"extractor_config" : {
"regex_value" : "id:(\\d+)"
},
"source_field" : "message",
"cursor_strategy" : "cut",
"type" : "regex"
}, {
"target_field" : "useless-info",
"id" : "1c51fc40-4c53-4ace-8dac-80fdc58ef6b6",
"extractor_config" : {
"regex_value" : "foofoofoo"
},
"source_field" : "message",
"cursor_strategy" : "copy",
"type" : "regex"
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment