[ create a new paste ] login | about

Link: http://codepad.org/FxY8ZXUa    [ raw code | fork ]

Python, pasted on Apr 11:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
input {
	tcp {
		port => 5000
	}
}

## Add your filters / logstash plugins configuration here
filter {
	grok{
		 match => [ "message", "(?<scraped>(?<='item_scraped_count': ).*(?=,))" ]
	}
}

output {
	elasticsearch {
		hosts => "elasticsearch:9200"
	}
}


Create a new paste based on this one


Comments: