Skip to content

Instantly share code, notes, and snippets.

View vigorousblessings's full-sized avatar

vigorousblessings

View GitHub Profile
@derickson
derickson / logstash-bikehare-status.conf
Last active March 10, 2021 14:26
Logstash config for http_poller pulling of DC Capital bikeshare data and doing an XML split of the contents.
## Example of pulling data from DC Capital bikeshare to Elasticsearch in real time
## HTTP Poller -> XML Splitting -> Elasticsearch
input {
## pull data from Capital Bikeshare every 60 seconds
http_poller {
urls => {
bikeshare_dc => "https://www.capitalbikeshare.com/data/stations/bikeStations.xml"
}
request_timeout => 30