Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Senario: You are using the latest ubuntu linux distro, You have been tasked with auditing the logs of the missionapp application. The application stores its

Senario: You are using the latest ubuntu linux distro, You have been tasked with auditing the logs of the missionapp application. The application stores its logfile at /var/log/missionapp.log. To facilitate this, you are to write regular expressions to extract various lines from the application logfile, and write the extracted entries to currently empty files which have been created for you.

Task

1. Extract all lines from the file /var/log/missionapp.log that contain the string running at the very end of the line only, and write them to the file

/opt/answers/output_a.log

2. Extract all lines from the file /var/log/missionapp.log that contain the string WATCHDOG at the very start of the line only, and write them to the file /opt/answers/output_b.log

3. Extract all lines from the file /var/log/missionapp.log containing the exception string ExpiredPasswordException , followed somewhere on the line by the username Daniel , and write them to the file /opt/answers/output_c.log

NOTE: Do not sort or manipulate the output simply extract the matching lines.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Real Time Database Systems Architecture And Techniques

Authors: Kam-Yiu Lam ,Tei-Wei Kuo

1st Edition

1475784023, 978-1475784022

More Books

Students also viewed these Databases questions