Getting Started Quickly With Swift Logging

We’ve covered how to log in seven different languages so far: C#, Java, Python, Ruby, Go, JavaScript, and PHP. We’ve also included a few libraries and platforms, like Log4J, Node.js, Spring Boot, and Rails.

Now, it’s time to talk about Apple’s Swift language. Swift has been slowly gaining in popularity, especially with since its open source release.

I’ll start with a quick example of manual logging in Swift. Then I’ll discuss details of how and why logging matters. Finally, I’ll move on to using Apple’s Unified Logger in a Swift application and how it can improve your ability to monitor applications and track down issues

The code example will be for MacOS, but you can easily adapt it for any Apple platform.

Let’s get to work!

Swift_Logging_Swift_Bird_Scalyr
Read More

Microservices Vs. SOA: What’s the Difference?

What’s the difference between microservices and SOA? The two design paradigms have a lot in common.

That makes sense when you consider that microservices are an offshoot of the SOA movement. But there are essential differences between the two systems. Let’s take a look at the two different approaches to architecture and highlight where they differ.

Before we dive in, it’s important to note that neither architecture has a universally accepted definition. So, you could spend as much time debating the details of what microservices or SOA are as you could arguing their differences.

Read More

How to Merge Log Files

You have log files from two or more applications, and you need to see them together. Viewing the data together in proper sequence will make it easier to correlate events, and listing them side-by-side in windows or tabs isn’t cutting it.

You need to merge log files by timestamps.

But just merging them by timestamp isn’t the only thing you need. Many log files have entries with more than one line, and not all of those lines have timestamps on them.

merge_log_files
Read More

API vs. Microservices: A Microservice Is More Than Just an API

When writing software, consider both the implementation and the architecture of the code. The software you write is most effective when written in a way that logically makes sense. In addition to being architecturally sound, software should also consider the interaction the user will have with it and the interface the user will experience.

Both the concept of an API and the concept of a microservice involve the structure and interactions of software. A microservice can be misconstrued as simply an endpoint to provide an API. But microservices have much more flexibility and capabilities than that. This article will speak on the differences between APIs and microservices, plus detail some of the benefits a microservice can provide.

To get started, let’s define our terms.

api_vs_microservices_scalyr
Read More

Lessons learned – the SaaStr podcast with Steve Newman

Being a serial entrepreneur brings home lessons on scale

Recently, Scalyr’s Founder and CEO Steve Newman chatted with Harry  Stebbins of @SaaStr to discuss a myriad of topics and lessons from Steve’s startups, including Writely and Scalyr

The conversation was wide ranging and quite informative. Steve talks about the toughest problem faced as a technologist becoming CEO (people management) and why small-scale data can be a distraction will ramping up.  He covers why delaying build out in Customer Success makes for a better product. 

Finishing up with the always-fun quick fire round, Steve and Harry continue to deliver both the fun and the information in rapid-fire mode.

Take a moment to listen in to the SaaStr podcast and share the lessons forward.

Do you remember that night in September?

Specifically the 26th – 28th of September 2018?

Scalyr definitely will as we head to Houston for the annual Grace Hopper Celebration. We are excited to be sponsoring the event for the first time. A handful of the team will be there to meet other women in technology and attend the various sessions. In particular, I’m excited about hearing from Padmasree Warrior (CEO & Chief Development Officer) and Priscilla Chan (Co-founder of the Chan Zuckerberg Initiative).

This will be my second time attending the conference. It’s inspiring to think back to the history of women in computing and remember the impact that people like Grace Hopper have had on our industry. I’m excited that Scalyr is participating for the first time. We will have a booth and will be there to talk to people about Scalyr and attend as many of the events as possible.

If you’d like to learn more about the hard technical challenges our team is facing,  be sure to swing by and visit us in booth #4951. We’d love to tell you more about our product, technology and company culture.
“If it’s a good idea, go ahead and do it. It’s much easier to apologize than it is to get permission.” – Grace Hopper

Scalyr Recognized as an Industry Leader

We’re a Forbes Cloud 100 “Rising Star” and 2018 SaaS Awards Winner!

We have some great news to share! Over the last month, Scalyr was named a Cloud 100 Rising Star for 2018 by Forbes, and won the 2018 SaaS Awards Program in the category “Best SaaS Product for Web/App Development.” These award wins recognize our continued commitment to ensuring our customers and the enterprise have the fastest, most accessible log management capabilities available.

The Cloud 100 Rising Stars are the 20 fastest-growing cloud companies poised for the Forbes Cloud 100 list. According to Forbes, “The Forbes Cloud 100 represents a who’s who of the biggest and best private companies in the cloud, but it doesn’t tell the whole story. Right behind this year’s winners is a new crop of underdogs, breakout up-and-comers in cloud computing who are looking to follow in their footsteps—or even come for their laurels.” The full list of Rising Stars with more details can be found here.

In its third year, the Software-as-a-Service Awards accepted entries from over 200 organizations from across the globe, including the US, Canada, Australia, UK, and EMEA. Scalyr’s log management platform took home the trophy for “Best SaaS Product for Web/App Development” for its speed, simplicity, and shareability. The full list of this year’s winners can be viewed here.

SaaS Awards and Cloud Awards organizer Larry Johnson said: “With so many potential winners on the shortlist, we hope our choices have proven thought-provoking, offering a real showcase of the diversity of today’s SaaS offerings. This year’s winners really do represent the entire globe, with extra non-US categories helping to showcase this innovation, from established organizations serving many customers to disruptive start-ups catering to a niche.”

Our small but mighty and growing team is truly humbled to receive such prestigious recognition. We are pushing software engineering to the next level so our customers can quickly and effectively solve issues in today’s cloud-based world. The future of web development calls for real-time alerting, as well as predictive and prescriptive analysis, so companies can identify problems before they arise. These awards acknowledge that Scalyr gives organizations the tools they need to head in this direction and we can’t wait to pave that path even further with future product innovations.

See for yourself why Scalyr is leading the industry with a free trial. Or come join us in building the next generation of software tools.

Getting Started Quickly With PHP Logging

The previous articles in this series covered the basics of logging in C#, Java, Python, Ruby, Node.js, and JavaScript. In this post, I’ll show you how to use logging techniques in yet another very popular language: PHP.

I’ll open with a quick example of manual logging in PHP. Then we’ll revisit the details of why logging matters and what your logs should show. And lastly, I’ll show you how to set up and use the most popular PHP logging framework.

Let’s get started, then!

php_logging_scalyr
Read More

How to Create a Docker Image From a Container

In this article, I’ll provide step-by-step instructions on how to create a Docker container, modify its internal state, and then save the container as an image. This is really handy when you are working out how an image should be constructed, because you can just keep tweaking a running container until it works like you want it to. When you’re done, just save it as an image.

Okay, let’s jump right into it.

create_docker_image_container_scalyr
Read More

Scalyr updates: Tabular search results, log lines in alerts and more

Last month, we fixed a pile of bugs and added two of our most highly requested features. If you’re curious about which bugs we fixed, we list them in our weekly release notes at https://www.scalyr.com/releasenotes/.

Tabular Search Results

In addition to our standard side-scrolling log search results, we’ve added a new table view mode. If you’re searching through fairly heterogeneous logs, having the just the field values shown in columns makes it much easier to see patterns and find things.

To try table mode, just bring up the Display Settings dialog, and choose the table radio button under “Display log entries in…”. You can pick what to show as columns from the list of parsed fields plus from the system fields checkboxes.

Another nice benefit in using a table is that you can be more exact when filtering. In the screenshot above, I’ve used the mouse to select the ‘prune_rate’ value for the ‘path5’ field. If I click the FILTER FOR button, the query becomes “path5 contains ‘prune_rate‘”, instead of just “prune_rate”.

Log Lines in Alert Emails

Usually it’s easier to spot problems when you can see a visual trend, especially when you’ve got obvious spikes in a timeline or dashboard graph. There are other times, though, when one glance at a terribly familiar log line can tell the tale even better.

Raw log lines are so verbose that we’re not turning them on for everyone, but you can request them by dropping us an email at support@scalyr.com.

Obscured API Keys

For security or compliance purposes, you may be required to keep your API keys hidden from view in Scalyr.  We’ve added the ability to only show them when you create them, but keep them obfuscated on the client thereafter.

If you would like to turn this setting on, email us at support@scalyr.com.

Feedback

Got an idea, feedback or questions?  Email us at support@scalyr.com.