# this is an emmett config file [[inputs]] # [inputs.generator] # count = 3 # lines = ["line 1", "line 2", "line 3"] # message = "Hello world!" # threads = 1 # [inputs.exec] # command = "ls" # interval = 30 # schedule = "* 5 * 1-3 *" [inputs.http_poller] request_timeout = 60 schedule = { cron = "* * * * * UTC" } codec = "json" metadata_target = "http_poller_metadata" truststore = "/path/to/downloaded_truststore.jks" truststore_password = "mypassword" [[inputs.http_poller.urls]] test1 = "https://jsonplaceholder.typicode.com/posts/1" # [[inputs.http_poller.urls]] # [inputs.http_poller.urls.test2] # method = "get" # user = "AzureDiamond" # password = "hunter2" # url = "https://jsonplaceholder.typicode.com/posts/2" # headers = { Accept = "application/json" } [[filters]] [filters.mutate] replace = { "id" = "yo dawg" } copy = { "title" = "titleCopy" } strip = ["body"] split = { "body" = "\n", "titleCopy" = " repellat " } capitalize = ["titleCopy"] join = { "body" = " ... "} [filters.json] source = "jsonString" target = "jsonString" # [filters.grok] # match = { message = "%{COMBINEDAPACHELOG}" } # [filters.date] # match = [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ] [[outputs]] [outputs.stdout] codec = "rubydebug" # [outputs.elasticsearch] # hosts = ["localhost:9200"]