Logstash config to pull events?
Hi there,
Could anyone share a working config for Logstash?
This is what I have, but I am having multiples errors:
logstash.conf
input {
http_poller {
urls => {
my_1password => {
method => "get"
url => "https://events.ent.1password.com/api/v1/auditevents"
headers => {
"Authorization" => "Bearer token"
"Accept" => "application/json"
}
#request_timeout => 60 # Optional: Timeout for the HTTP request in seconds
#Parameters can be added here
#params => { start_time => "2024-07-01T00:00:00Z"}
}
schedule => { every => "2m" } # Poll every 2 minutes
#codec => "json" # Decode the response as JSON
}
}
Write outputs on the console
output {
stdout { codec => rubydebug }
}
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided