Question: Given the following log message for reference, create a set of commands ( grep and awk, or awk only ) to create a brief report
Given the following log message for reference, create a set of commands grep and awk, or awk only to create a brief report containing the following fields:
Date field Client IP field Client Source Port field URI field
Filter criteria:
Filename: apacheerrorlog Regular expression term: "Invalid URI"
Log Message:
::core:error pid: client: Port:AH: Invalid URI in request GET cgibineeeeeeeeeeeeeetchosts
Resulting report for this message should be:
::cgibineeeeeeeeeeeeeetchosts
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
