Score:0

Import past log files into Sentry

cn flag

We're exploring sentry.io

Is it possible to import historical logs into Sentry?

We're also looking at Prometheus and Grafana, and it looks like general SQL queries work for them, but it seems to me that I'd want to review error logs in the same place as new error logs are analyzed.

Score:1
la flag

I get the idea that a key concept of the product is that events get sent directly by the applications to Sentry, rather than relying on an intermediate step of first logging to a local (error) file.

AFAIK Therefor the product simply does not have any native support for "tailing" log files, log shipping and subsequently also not for generic importing of historical log files.

This https://docs.sentry.io/product/sentry-basics/migration/ suggests:

"One thing to note is we won't be able to transfer over historical event data, but new incoming events will ..."


Note: You can use the sentry cli to send perviously captured JSON events.

Here: somebody uses logstash with a custom sentry/raven plugin for log shipping to Sentry, which may also be an approach to send your historic log files to Sentry.

Unfortunately most log files are line based and converting existing line based log files with multiline stack traces to (JSON) events is a big PITA. It can be done, we currently do log shipping for numerous applications (in a different setting) with with the filebeat multiline parser rather than the logstash multi-line codec

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.