Assignment 3

Jul 14th, 2016
Studypool Tutor
Towson University
Price: $20 USD

Tutor description

ITEC 325 Spring 2013 Assignment 3 Working individually you will choose five log files. For each of the logs you should perform the following tasks: • Describe the log • Create a script that may be useful in managing the log • Illustrate why the script would be useful • Create one regular expression that may be useful in analyzing the log • Describe the rules that dictate the pattern of the regular expression • Illustrate why the regular expression would be useful. • (The regular expression should be part of the script) When describing the log please provide 4 - 5 sample lines and discuss them briefly. The five logs should be divided as follows: • Three logs generated by the system (for example: daemon, kern, syslog) • Two logs generated by installed applications (for example: mysql, apache

Word Count: 391
Showing Page: 1/2
AwanUsman AwanITEC 3257/1/2016ASSIGNMENT 31.syslog: Contains system informationscript function: get DHCP information#!/bin/bash[[ "$#" -ne 1 ]] && echo "Please check input" && exit -1grep "NetworkManager" "$1" | awk -F'' '{print $3}' | sed '/^\s*$/d'2.My sqlmysql_slow_query.log: Contains slow queryscript function: how many queries were longer than X seconds#!/bin/bash[[ "$#" -ne 1 ]] && echo "Please check input" && exit -1QUERYTIME=30.0LINES=$(grep -n Query_time "$1" | awk -v time="$QUERYTIME" '$3 > time {print; }$NUM=$(grep -n Query_time "$1" | awk -v time="$QUERYTIME"

Review from student

Studypool Student
" awesome work thanks "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1826 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors