thanks for your help and time given but the output does not only contain error info, it also return info that I do not want :
Is there anything you can do to get rid of the "Execution OK" as I only want to get the ERROR info ?
Also, do you mind to show me where to insert the DATE as variable instead of static value
In another hand, your code seems to take a certain amont of time to get the result on screen and exit... I first think it wasn't working, were you aware of this ?
hello,
I want to grep the log file according to time and get the portion of log from one particular time to other.
I can grep for individual lines by time but how should I print lines continuously from given start time till end till given end time.
Appreciate your ideas,
Thanks
chandra (8 Replies)
I would like to write a shell script that will parse through a file similar to the sample below. The data in the file is redirected from rsync into a log file. I would like to call a shell script to parse through and pick out the number beside the percent sign inside the parentheses in the last... (5 Replies)
Hi there,
I'm having some problem with UNIX scripting (ksh), perhaps somebody can help me out?
For example:
------------
Sample content of my log file (text file):
--------------------------------------
File1: ....
info_1 ...
info_2 ...
info_3 ...
File2: ....
info_1 ...
info_2 ...... (10 Replies)
Hi i new to scripting and am trying to create a script to pull my current of logs from /var/logs/secure and name it securelog-Month-Day-Hour.txt
example:
grep 'Mar 5 11' /var/logs/secure > /home/(user)/Documents/Logs/mylog-02-1-11
How do i set the targeted strings to be the current... (2 Replies)
Hye ShamRock
If you can help me with this difficult task for me then it will save my day
Logs :
==================================================================================================================
... (4 Replies)
I have a log file with several IP addresses in it:-
2012-12-06 16:05:05,885 NOTICE **SNMP** Alarm was created: (LicenseClientRejected) Client Remote Peer /125.111.64.125:2573 was
Rejected Property=/125.111.64.125:2573, Client Remote Peer /125.111.64.125:2573 was
Rejected **SNMP**.... (5 Replies)
Hi i am having a logfile which contain lot of entires, but i need extract a word after if i found a line that contains a particular string as "ENROLLMENT_EXCEPTION - Exception". please help me in getting a script to do this.
Regards
C. Suresh (5 Replies)
Hi,
I am trying to grep/extract the number list from this log file, can I get some help on this. I can grep the word 'href' to see the numbers, but it is resulting with the complete line.
Content of my file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>... (4 Replies)
Hi,
I have a log file (log.txt) that which contains lines of date/time.
I need to create a script to extract a CSV file (out.csv) that gets all the sequential times (with only 1 minute difference) together by stating the start time and end time of this period.
Sample log file (log.txt)
... (7 Replies)
Hi, I would like to seek your help for a script that will extract data from log file and put it in a file.
Sample log file
2018-10-23 12:33:21 AI ERROR -- tpid: SAMPLE_TH account: 123456789 aiSessionNumber: 660640464 mapName: xxx to yyy
errorDesc: Translation Error:ErrorNumber : 993 ... (2 Replies)
Discussion started by: neverwinter112
2 Replies
LEARN ABOUT CENTOS
tuned
tuned(8) Adaptive system tuning daemon tuned(8)NAME
tuned - dynamic adaptive system tuning daemon
SYNOPSIS
tuned [options]
DESCRIPTION
tuned is a dynamic adaptive system tuning daemon that tunes system settings dynamically depending on usage.
OPTIONS -c CONFFILE, --conffile=CONFFILE
Specify the name and path of the configuration file. By default the /etc/tuned.conf is used.
-d, --daemon
This options starts tuned as a daemon as opposed to in the foreground without forking at startup.
-D, --debug Sets the highest logging level. This could be very useful when having trouble with tuned.
-h, --help Show this help.
-l [LOG], --log[=LOG]
Log to the file LOG. If no LOG file is specified /var/log/tuned/tuned.log is used.
--no-dbus Do not attach to DBus.
-P [PID], --pid[=PID]
Write process ID to the PID file. If no PID file is specified /run/tuned/tuned.pid is used.
-p PROFILE, --profile PROFILE
Tunning profile to be activated. It will override other settings (e.g. from tuned-adm). This is intended for debugging pur-
poses.
-v, --version
Show version information.
FILES
/etc/tuned
/usr/share/doc/tuned-*/README
SEE ALSO tuned.conf(5)tuned-adm(8)AUTHOR
Jan Kalua <jkaluza@redhat.com>
Jan Velak <jvcelak@redhat.com>
Jaroslav karvada <jskarvad@redhat.com>
Phil Knirsch <pknirsch@redhat.com>
REPORTING BUGS
Report bugs to <power-management@lists.fedoraproject.org>.
Fedora Power Management SIG 28 Mar 2012 tuned(8)