Using multiple Heroku logging add-ons simultaneously - heroku

Is it ok to simultaneously use both Papertrail and LogEntries logging with the same Heroku application, or could that cause issues?

In short: there shouldn't be any issue. As stated in the logplex documentation, there can be as many log-drains as you want, starting just from the CLI, going over to custom log-drains, and addons as you wish.

Related

Logentries with heroku not displaying Exceptions

I'm very new to logentries and still learning. I'm using logentries with heorku.
I used to see a list of Exceptions but now it constantly says "0" even with there are plenty.
What can I do for logentries to show me an aggregated view of the exceptions.
Logentries has been removed by Heroku Addons.
These are the alternatives you can try
If you want to use heroku addon only, you can use logtail
Otherway, you can use logentries directly without using heroku addon.
Thanks

Access to heroku logs without access to app itself

Say, i have a team of developers. I want them to have access to production logs, but nothing else. Preferably they shouldn't even know the heroku's internal app name.
How do i do that?
I don't think it's possible (at the moment) with Heroku command line. You have two options:
Use one of the logging addons and give your teammates access to the logging app only
Write yourself a log drain for Heroku logplex route the logs to AWS S3, your own DB or other, then give your teammates some way to view the logs.

Same add-on for multiple Heroku apps

What are the best practices with Heroku add-ons? I manage multiple Heroku apps. I want them to share a common add-on. how to do that?
For example, first I signed up for Mandrill on their website. When I added Mandrill add-on on Heroku, they created a new Mandril account for me. I wanted to merge them but Mandril support said that they can't merge accounts!
Another example, I added Logentries add-on to one Heroku app. A Logentries account was created. Then I added another Logentries add-on to another Heroku app, then another Logentries account was created.
It's getting messy. Am I doing it right? How to make several Heroku apps share one add-on account?
Sharing add-ons between apps is possible.
Once the add-on is added to one of the apps, an environment variable will be created containing the account information. You can copy the variable to other apps and they will start sharing the same 3rd party resource.
The add-on will remain listed only under the first app, where it was initially added, but this will not prevent the other apps to use it.
In the general case it isn't possible to share add-ons between Heroku apps. However with some specific add-ons this is possible, depending on the add-on.
For example with Logentries you can have one Logentries account and then configure each Heroku app to send its logs to Logentries via a syslog drain.
https://logentries.com/doc/heroku/ (See the "Alternatively: Point your syslog drain to Logentries" section)
To set up syslog drain, you have to create a new log in Logentries UI
with the source type “Syslog TCP, UDP” (select Hosts, then click on a
button in right top corner). Logentries will assign you a port number
PORT and set the log in discovery mode to match your log with source.
Then, let Heroku know where to send you log entries. Add a Heroku
syslog drain and point it at api.logentries.com:PORT:
heroku drains:add syslog://api.logentries.com:PORT
Yes, you're doing it right. Each Heroku app is a separate instance and will get its own add-ons. There is no way to share add-ons across multiple Heroku apps, as far as I know.

how to use the memcache add-on in heroku cedar?

I am in the process of (finally) migrating a small heroku app from the bamboo stack to cedar, following the migration guide.
All works well, except I am unable to reinstate the heroku memcache add-on.
Apparently this has been abandoned, or removed, but I cannot find any information about it, is my only option to switch to a different memcache-y add-on? Why did heroku discontinue this add-on?
the day after I submitted this question, heroku notified me and a bunch of other people:
Action Required: MEMCACHE ADD-ON IS SHUTTING DOWN
In the mail, they themselves suggest switching to memcachier, so that's about it.

Heroku web UI log viewer

I wonder if there is a more friendly way ( using some GUI) to view Heroku application's logs than through a console?
I think papertrail (heroku addon) is the best option, it is similar to console logs, with search, and you can achive the logs daily to amazon S3.
Not at the moment.
You can however use the logs drain add-on to pipe your applications to a running syslog on a separate server, like outlined in the heroku docs.
After that, you could use a tool like Splunk to analyze your logs in a nice Web UI.
Hope this helps.
The Loggly Heroku add-on might be a good option.

Resources