Skip to content

Instantly share code, notes, and snippets.

View jgrevich's full-sized avatar

Justin Grevich jgrevich

View GitHub Profile
@jgrevich
jgrevich / purpleair.conf
Created May 24, 2020 02:32
PurpleAir Logstash Configs
input {
http_poller {
add_field => { "purpleair.location" => "indoor" }
codec => "json"
schedule => { every => "11s" }
urls => {
purpleair_1 => "http://192.168.1.2/json"
purpleair_2 => "http://192.168.1.3/json"
purpleair_3 => "http://192.168.1.4/json"
}