1.Write an automated shell program(s) that can create, monitor the log files and report the issues for matching pattern.
(i) Conditions for creating log files. Log file is created with date (example 2010_03_27.log). If the log file size is 10 Mb for a particular day then automatically the log file will be rotated with sequence number (example, on a particular day if the log file crossed 10 MB while the data insert ii n progress, the program should rotate the log file with a sequence number YYYY_MM_DD_sequence_number.log)
(ii) Condition for reading the data for pattern matching The report with matched pattern should be reported at the earliest for effective business decision. The data that is already processed shouldn't be considered for analysis for pattern matching.
Analyze the log for following pattern's: 1. Report number of 'User_Authorization_Failed' 2. Report number of 'User_Authentication_Failed' 3. Report number of 'User_Access_Locked'
I am trying to script and came up with a conclusion that I need a do while loop in my statement. I am stuck with the
do while syntax. I need to use it alongwith the if then else statement. Can I use it is a big question? I actually need to get all the files
that are there from within run_dt to... (1 Reply)
The Problem content is
pin (AND1) {
dir : output;
cap : hot;
tran: slew;
}
need to write a awk script which can search the Pin AND1 and then tran of the Group pin(AND1)
and then insert the code from the file "insert_code" .
insert_code file contents . It is a Big file the script should... (3 Replies)
Hi all,
I have little working knowledge in unix shell scripting. I have a requirement where i need to pull out some data in between the strings in the file.
Input:
TEST
a
a
c
f
d
TEST
f
e
g
g
TEST
Output: (7 Replies)
Hi All,
I have a source file with data
Name ~ Groups
Muni~abc,was,USA_ax,123
Chaitanya~USA_12,was
Balaji~123,xyz,was
Ramu~123,xyz
From the second column i want to extract only the groups that matches the pattern 'USA_%' or if the group = 'was', and ignore any other columns.
... (8 Replies)
I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
LEARN ABOUT CENTOS
abrtd
ABRTD(8) ABRT Manual ABRTD(8)NAME
abrtd - automated bug reporting tool's daemon.
SYNOPSIS
abrtd [-dsv[v]...]
DESCRIPTION
abrtd is a daemon that watches for application crashes. When a crash occurs, it collects the problem data (core file, application's command
line etc.) and takes action according to the type of application that crashed and according to the configuration in the abrt.conf config
file. There are plugins for various actions: for example to report the crash to Bugzilla, to mail the report, or to transfer the report via
FTP or SCP. See the manual pages for the respective plugins.
OPTIONS -v
Log more detailed debugging information.
-d
Stay in the foreground and log to standard error.
-s
Log to system log even with option -d.
-t NUM
Exit after NUM seconds of inactivity.
-p
Add program names to log.
CAVEATS
When you use some other crash-catching tool specific for an application or an application type (for example BugBuddy for GNOME
applications), crashes of this type will be handled by that tool and not by abrtd. If you want abrtd to handle these crashes, turn off the
higher-level crash-catching tool.
AUTHORS
o ABRT team
SEE ALSO abrt.conf(5)abrt 2.1.11 06/18/2014 ABRTD(8)