Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- http_poller {
- urls => {
- payara => {
- method => get
- url => "http://localhost:8080/metrics/base"
- headers => {
- Accept => "application/json"
- }
- }
- }
- request_timeout => 60
- schedule => {cron => "* * * * * UTC"}
- }
- }
- filter {
- date {
- match => [
- "timestamp", "ISO8601"
- ]
- target => "@timestamp"
- }
- #grok {
- # match => {"message" = > "^%{namespace}\:%{key}\ %{value}"}
- #}
- #drop {
- # remove_field => [ "@timestamp", "timestamp" ]
- #}
- }
- output {
- influxdb {
- host => "localhost"
- port => 8086
- db => "grafanadb"
- user => "admin"
- password => "12345"
- #codec => json
- #exclude_fields => ["@timestamp"]
- #use_event_fields_for_data_points => false
- #data_points => {}
- # codec => line {
- # format => "%{message}"
- #}
- use_event_fields_for_data_points => true
- #exclude_fields => ["@timestamp", "@version", "sequence", "message", "type"]
- data_points => {
- }
- }
- #stdout {
- # codec => rubydebug
- #}
- stdout {
- codec => rubydebug
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement