Logs in Sentry 🚀 - Open Beta #86804
Replies: 83 comments 123 replies
-
For us search isn't really that super important. Triggering alarms would be the main thing we would be interested in. |
Beta Was this translation helpful? Give feedback.
-
could you add the org |
Beta Was this translation helpful? Give feedback.
-
Hi, looking forward to seeing what you do with this feature 🤩 ! Can you add this to our org |
Beta Was this translation helpful? Give feedback.
-
looks great! Interested in the beta :) |
Beta Was this translation helpful? Give feedback.
-
Will you support mobile SDKs in the future? If so, will you also consider processing everything on-device, and allow us to configure settings such that logs are pushed only when there's an error, and not simply push all logs to Sentry? Use case: When there is an Example:
|
Beta Was this translation helpful? Give feedback.
-
Can’t wait, always wish this was integrated, it’s really an AIO now! Would love to participate in the beta ( |
Beta Was this translation helpful? Give feedback.
-
Hi, could you add |
Beta Was this translation helpful? Give feedback.
-
I'd love to try out logging as well @ Perhaps, some kind of pattern matching (regex?) alert would be really useful. |
Beta Was this translation helpful? Give feedback.
-
This is awesome! Very happy to see logging added to Sentry! |
Beta Was this translation helpful? Give feedback.
-
Could |
Beta Was this translation helpful? Give feedback.
-
This is really nice to see. Is this feature intended to only collect logs from the things integrated with the Sentry SDK? Or are there plans to ultimately support log shipping from other sources into the Sentry UI, too? |
Beta Was this translation helpful? Give feedback.
-
Please let me know if we can get some access at the slug qliktechnologies :) |
Beta Was this translation helpful? Give feedback.
-
Will it also be available in a self-hosted version? |
Beta Was this translation helpful? Give feedback.
-
Sounds great! Can we use it from sentry-native? 🙏 |
Beta Was this translation helpful? Give feedback.
-
would love to try this out with our team! |
Beta Was this translation helpful? Give feedback.
-
Hi there, What is the correct way to send a JSON formatted log and get it parameterized in sentry logs? I'm trying to do that but it is not getting parameterized in sentry. Our current logs are JSON formatted. What is the recommended way to get the logs to sentry in a way that can be parameterized? I'm using the python SDK. Using the logger function in the SDK is not possible due to we have to update everywhere. If anyone can give a insight much appreciated! |
Beta Was this translation helpful? Give feedback.
-
It looks like Sentry applies data scrubbing server side, as I see some [Filtered] values. Which is great. Except, I have one field which I want to exclude from scrubbing, so I've added that to the safe fields in the project, yet it is still being scrubbed. Is that expected behavior or am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
-
Would there be a possibility to export logs? 👀 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Would it be possible to permanently delete/remove entities from Sentry logs base on search/filtering criterias? Either via API or via Sentry UI would work. (Question related to GDRP compliance in our case) |
Beta Was this translation helpful? Give feedback.
-
Hey, at |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Will logs have a different quota value than the error reporting? Currently, I'm using Also, can errors and logs be linked or referenced in anyway? If a user has a bunch of log entries and then they get an unhandled exception, is there anyway those can be seen together vs just comparing users and timestamps manually in both and hoping for the best? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
👋 I'm trying to gauge how much of Sentry Logs is to aid the other things Sentry is good at as opposed to being a wholesale competitor to something like Papertrail. To what extent is this intended to be used with particularly noisy things like access logs? In particular, if my application is emitting logs to Sentry in lieu of something like Papertrail, can/will it also support exfiltrating those logs to an S3 bucket for more permanent storage (e.g. https://www.papertrail.com/help/permanent-log-archives/)? Similarly, are there plans for Sentry to be able to be used as a syslog drain to collect logs from services (e.g. https://render.com/docs/log-streams) instead of just applications via SDKs? I'm trying to see if Sentry logs is adequate for the sort of prototypical Heroku/Render app that is non-trivial but not significant enough to justify an ELK stack setup. |
Beta Was this translation helpful? Give feedback.
-
Hello! Is there a way to query logs via the API? I can't quite figure out how to do that.. My usecase - exposing sentry errors and logs to a coding agent. |
Beta Was this translation helpful? Give feedback.
-
Hi All, We just wanted to publish a reminder note that you need to send a Log message/body when you send Logs to Sentry. Sending empty strings or null value as the log message is not supported and will lead to Logs getting dropped as invalid events on the Sentry server side. |
Beta Was this translation helpful? Give feedback.
-
Any updates on the business model? i.e. Pricing, quota and retention policy? |
Beta Was this translation helpful? Give feedback.
-
We just released live auto-refresh for Logs ! Toggle on the auto-refresh option and see your logs come in live. Please let us know if you have any feedback Logs-AutoRefresh.mp4 |
Beta Was this translation helpful? Give feedback.
-
Is it possible to "subscribe" to a certain log entries and get notified (e.g. in browser) when a certain event is there? Let's say I want to be notified when a log entry containing "payment" in its message arrives. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
TL;DR
Sentry is adding support for structured logs, so you can view and query your logs alongside your traces and errors—all in one place.
You can find the SDK instructions to send logs here:
JavaScript SDK instructions here.
Python SDK instructions here.
See other supported SDKs here
Just head to Explore->Logs to view your logs !
We're working on supporting more SDKs and will keep this discussion updated as we iterate. For more details, keep reading or join the discussion below!
One of the biggest asks we've heard from our users is that you'd like to have the ability to send logs to Sentry, to have a single pane of glass for all your observability needs.
For those of you that have been with us for a while, you know we've always had some opinions about logging and how we’re focused on errors-first troubleshooting. However, we recognize that for many developers, log statements often provide valuable context for identifying and correcting problems.
To that end, we're happy to announce that we're adding support for logs in Sentry. Soon, you'll be able to send logs to Sentry and view them alongside traces & errors.
Read more details on how we're implementing support for logs, the "Sentry way" (or, if you'd like, Sentry's version). ⬇️
What can you do with Logs in Sentry?
Why Logs in Sentry?
When debugging, logs, traces, and errors work better together. Logs provide the granular context—like retries, API failures, and internal state—that spans and errors can miss. But in most tools today, logs live in a separate system, forcing you to switch between tools to piece together the full picture.
With logs in Sentry, everything is in one place. You can see logs right alongside your errors and traces—no more context switching, just faster debugging.
Getting started is just as easy as adding a
console.log
orlogger.info
. Our SDKs handle the heavy lifting, automatically linking your logs to traces and errors so you get the full context with minimal setup.Also - We're supporting structured logging that will support passing variables in a string template directly - We'll extract your variables and the template as attributes of the log that you can query
Supported SDKs: What’s Available and What’s Next
We’re kicking things off with JavaScript (including TypeScript and frameworks like NextJS, etc), and support for Python will be available in the next two weeks. More languages will follow as we expand logging support across our SDKs.
We’re also working on seamless integrations with popular logging frameworks. That means no major rewrites—just flip a switch at the SDK level, and your logs will start flowing into Sentry alongside your traces and errors.
Try Logs in Sentry
Just head to Explore->Logs to view your Logs. You can get started with sending Logs by following SDK instructions here
We'll be actively adding support for more SDKs over the coming weeks, but if you want to see a specific SDK prioritized, please leave a comment!
What Feedback Are We Looking For?
Your input will help us refine our Logs as we work towards general availability.
Drop your thoughts below, or email us directly at [email protected]. We’re looking forward to hearing from you!
Beta Was this translation helpful? Give feedback.
All reactions