Exercise: Parsing Log Files

Difficulty: Intermediate
Duration: 14 minutes and 32 seconds
Students: 453
Rating: 4.7/5

In this lesson, we'll explore a range of options for manipulating data. We'll look at some commands that can be used in shell scripts to transform and process data. We'll then walk you through an example of parsing through log files to find data that matches certain criteria. Finally, you'll learn how to manipulate data and transform text with sed.

This lesson is part of the Linux Shell Scripting course. To follow along with this lesson, you can download all the necessary resources here.

Learning Objectives

  • Learn a range of commands used for transforming, processing, and reporting data including cut, awk, sort, and uniq
  • Learn how to parse log files for failed login attempts and identify the IP addresses of those
  • Manipulate data and transform text with sed

Intended Audience

  • Anyone who wants to learn Linux shell scripting 
  • Linux system administrators, developers, or programmers

Prerequisites

To get the most out of this lesson, you should have a basic understanding of the Linux command line.

Covered Topics