Exporting data from elmah.io

A common request through the elmah.io support is: how do I export my data?

The reasons for exporting data may be:

  • Import into Excel or similar for custom processing and graphing.
  • Backup of old data.
  • Switch to another error management system.

Export from elmah.io to file

Let's make one thing clear. The log messages you ship to elmah.io are yours. That's why we want to make it as simple as possible to pull our data from elmah.io. We looked at creating a UI for the purpose, but exporting something like a GB of data from a website never works very well.

Let me introduce you to Elmah.Io.Export. Elmah.Io.Export is a small CLI (command-line interface) for exporting data from elmah.io. It's implemented in .NET Core and therefore works on all supported operating systems.

For now, the tool is available on GitHub, where you can clone and build it:

git clone https://github.com/elmahio/Elmah.Io.Exporter.git

When built, go to the output directory and run:

dotnet Elmah.Io.Export.dll -ApiKey API_KEY -LogId LOG_ID

Remember to replace API_KEY with your API key (where is my API key?) and LOG_ID with your log ID (where is my log ID?). Elmah.Io.Export now saves all content from the chosen log to a file. The tool supports a range of options like a query and date range. To dig deeper, check out the help article: Export data from elmah.io to JSON.

Looking to import some test data in one or more logs? Elmah.Io.DataLoader to the rescue!

elmah.io: Error logging and Uptime Monitoring for your web apps

This blog post is brought to you by elmah.io. elmah.io is error logging, uptime monitoring, deployment tracking, and service heartbeats for your .NET and JavaScript applications. Stop relying on your users to notify you when something is wrong or dig through hundreds of megabytes of log files spread across servers. With elmah.io, we store all of your log messages, notify you through popular channels like email, Slack, and Microsoft Teams, and help you fix errors fast.

See how we can help you monitor your website for crashes Monitor your website