devops:logging:elk
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devops:logging:elk [2018/04/10 15:43] – skipidar | devops:logging:elk [2023/11/01 07:15] (current) – ↷ Page moved from camunda:devops:logging:elk to devops:logging:elk skipidar | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| - | ==== COnfiguration ELK stack for Java app ==== | + | ==== Java app logs to ELK==== |
| + | Here a good tutorial: https:// | ||
| Line 43: | Line 44: | ||
| == logback.xml== | == logback.xml== | ||
| - | COnfigure | + | Configure |
| < | < | ||
| Line 84: | Line 85: | ||
| </ | </ | ||
| + | |||
| + | |||
| + | === ELK side === | ||
| + | |||
| + | Configure Logstash to receive the data from the tcp appender, via TCP. | ||
| + | |||
| + | Modify the input file: | ||
| + | / | ||
| + | |||
| + | https:// | ||
| + | < | ||
| + | |||
| + | input { | ||
| + | | ||
| + | port => 5044 | ||
| + | codec => json_lines | ||
| + | } | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | **Achtung: LogStash creates its own index!!! No need to mess around with the manual creation.** | ||
| + | |||
| + | |||
| + | === Docker === | ||
| + | Running ELK in docker for the demo. | ||
| + | |||
| + | < | ||
| + | sudo docker run -v / | ||
| + | |||
| + | </ | ||
| + | |||
devops/logging/elk.1523374994.txt.gz · Last modified: (external edit)
