Menu
Who Do Is
  • Home
  • What
  • How
  • Is
  • Can
  • Are
  • Does
  • Do
  • Why
  • Who
  • Where
  • Which
  • Which
  • Should
  • Will
  • When
  • What’s
  • Did
Who Do Is

[ANSWERED] android – Why is it not popular to have a mobile application send crash log to ELK

Posted on November 14, 2022

Solution 1 :

The way you want to solve this is basically not bad.
But in my opinion ELK is not precisely you want.

The SQS + Lambda is a good idea to aggregate and filter the lots of public requests, but have some issues with security, or efficiency (or maybe cost).
And the architecture of that will not be simple at all.

However, if I may recommend sentry.io, which is exactly the tool you need there as I understand the problem correctly.

And sentry have solution for mobile, android and iOS too.

I did use sentry for different things, and have a clearly readable interface to work with. With minimal code assigns you can tag the events, throw good Exceptions for filtering, and sentry solves the rest.

Solution 2 :

Here a good article that explain many solutions to do remote logging for mobile apps.

The best way to send your log to elastic stack is to use Hyperlog.

Hyperlog is a free and open source library to send your logs to ELK or
RequestBin, service for inspecting HTTP payloads.

ELK goes for Elasticsearch, Logstash, Kibana – services for storing,
collecting and monitoring logs. Despite they are mostly used for web
apps, we can send logs from our apps to ELK as well. Deployment and
configuring of the ELK stack is out of scope of this article, but you
can find details here. You can also choose one of the ELK stack
providers, there are quite a lot of them.

You can also take a look to Bugfender and Loggly that do not require the entire elastic stack to monitor and troubleshoot your apps.

READ  [ANSWERED] android - Search View throwing exception (Null Object Reference)
Powered by Inline Related Posts

Problem :

I am developing a mobile application on IOS and Android. Currently I use Firebase Crashlytic to track application crash log.

I am not quite satisfied with what I can do with Crashlytic. For example when a user reported an issue and had a video record an app crash at a specific time, I would like to see the log from the device around that time, but it’s not easy with Crashlytic.

A solution popup in my mind to have the mobile application send the crash log to my AWS SQS queue and somehow pass it to Elasticsearch so that I can filter the log using Kibana.

I would like to implement something like this

  1. The mobile app keep log of everything into a rotatable temporary file.
  2. When meet following conditions, send the log from file to the SQS queue.
  • Before showing any error popup
  • After any app crash event
  • When an API did not response after X seconds
  1. If found any error in the process of sending log in 2., set flag retry_send_error=true in memory.
  2. On any possible application event, if found that retry_send_error==true in memory, try send the log again.
  3. Create a lambda listening the SQS queue and send the log to LogStash or Elasticsearch.

I have been searching on the Internet to find some reference example and could not find any good one. So I doubt my solution could have something wrong.

Please help suggest if you know some good example with architecture similar to this, or if you know the reason why this solution is not so popular.

Comments

Comment posted by Hyperlog

Have you tried using

READ  [ANSWERED] How to make an .exe file from C++ source code using an adroid phone & the app Cxxdroid
Powered by Inline Related Posts

Comment posted by Val

Any feedback from the link I shared above?

Comment posted by asinkxcoswt

@Val thank you. I have reviewed the library but it seems not quite popular enough and the project is not active. I would love to tried it in my personal project but it is not enough to entrust customers to believe that using ELK for mobile is a common practice because the popularity of this solution is far beind other options.

Comment posted by Val

The mere fact that you can’t find any existing project doesn’t necessarily mean that doing so is not popular. I’ve done such things in private projects and I’m most probably not the only one, the thing is that most customers don’t like to have their code published on Github or elsewhere. But what you’ve described is definitely one way of doing it. I’ve seen this done in multiple ways, via MQTT, web sockets, firebase, direct HTTP calls, etc

Comment posted by Jordan Stewart

I think it’s more natural to stream logs from a web-server to Elasticsearch. Streaming logs from a mobile apps isn’t ideal due to limited bandwidth, and network connection. I think pushing logs on need works around that, which you suggested. You could also have more tests in the development environment for the mobile app to try to limit errors.

Comment posted by sentry.io/vs/logging

Sentry is a good tool when it comes to crashes or error tracking but it’s not necessarily a longing framework. You might lose the historic events of the same error type similar to in every crash reporting tool like firebase etc. They also mentioned it in their website.

READ  [ANSWERED] flutter - Werid android emulator in Android Studio
Powered by Inline Related Posts

Recent Posts

  • How can I play with my cat without toys?
  • What is a bag pipe band called?
  • Are Honda Civics actually fast?
  • Are Yankee candles toxic?
  • How do I pair my Michael Kors smartwatch with my Android?

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuántas
  • ¿Cuánto
  • ¿Que
  • ¿Quién
  • 90” and 108” so you may have to round up to the nearest size.
  • and delete any Spotify folders from it. Once this is done
  • Android
  • Are
  • At
  • Bei
  • blink
  • C'est
  • Can
  • carbs
  • Comment
  • Did
  • Do
  • Does
  • During
  • For
  • Has
  • How
  • In
  • Is
  • Ist
  • Kann
  • Können
  • nouveau
  • On
  • or 108 inches.2020-08-03
  • Où
  • owning
  • Pourquoi
  • Puis-je
  • Quand
  • Quante
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • spiritual
  • tap the downward-facing arrow on the top left. A downward-facing arrow will appear underneath each song in the album; they'll turn green as the download completes.2020-07-28
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welcher
  • Welches
  • Welke
  • Wer
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Whose
  • Why
  • Wie
  • Will
  • Wo
  • Woher
  • you will receive two curtains each with the same measurements of width 66"" (168cm) x drop 54""(137cm).
  • you'll see a green downward-facing arrow next to each song.2021-02-26
©2023 Who Do Is | Powered by SuperbThemes & WordPress