Created
June 17, 2026 13:51
-
-
Save boredstiff/ce3e8fc2458eebdd4367d521b76e0df9 to your computer and use it in GitHub Desktop.
logstash.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| input { | |
| file { | |
| path => "/logs/my_service.log" | |
| start_position => "beginning" | |
| sincedb_path => "/dev/null" | |
| codec => json | |
| } | |
| } | |
| output { | |
| elasticsearch { | |
| hosts => ["http://elasticsearch:9200"] | |
| index => "customer_api" | |
| } | |
| stdout { codec => rubydebug } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment