Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7681 Lượt xem

Does anyone have a logstash parser they have been using to deal with OpenERP (or Odoo) log files?

We are wanting to be able to throw them into an app with our postgres and nginx logs to have a better idea of tracking where and when things go wrong.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Little late, but I created a Odoo grok filter for logstash: https://gist.github.com/hofrob/6383dd464747d0cc6f90

Requests are captured in detail. All the other messages (after the module name) get put into the "misc" field since there doesn't seem to be any convention.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I have a solution for sentry that should be easy to change for logstash. 

It uses your system's Syslog handler (it assumes you are using rsyslog), and forwards OpenERP v7 messages to a custom handler that finally does the sentry logging.

You can find it here https://gist.github.com/nagyv/398b0f9d0cb4061b6068

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 18
4035
1
thg 1 25
57274
0
thg 3 15
4911
0
thg 3 15
3780
1
thg 8 22
3664