01-18-2013
Hi. Yes. Each path has a differnt log (System1,2,3) that follows the same naming convention.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a log file which is continuously added to, called log.file. I'd like to
monitor this file, and when certain lines are found, update some totals in
another file. I've played around with tail -f, grep, and awk, but can't seem
to hit the right note, so to speak.
The lines I'm... (0 Replies)
Discussion started by: nortonloaf
0 Replies
2. Shell Programming and Scripting
Hi,
We use an application that is dumping logs to a file on disk. However, this is dumping very verbosely and there is no method of turning down the logging level. We need to remove certain contents from these before they are commited to disk.
Has anybody got any ideas how I can do this... (3 Replies)
Discussion started by: harperonline
3 Replies
3. Shell Programming and Scripting
Hi,
I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows:
""""""""""""""""""""""""""... (3 Replies)
Discussion started by: harish.parker
3 Replies
4. Shell Programming and Scripting
I want to find the unique url in a apache logs which got 404 error .
I can do something like
"cat apache.log|grep 404|awk '{print $2,$3}'|grep 404
this will give me say
/foo.html 404
/foo.html 404
/foo.html 404
/bar.html 404
/cat.html 404
However my output should only find... (3 Replies)
Discussion started by: gubbu
3 Replies
5. Shell Programming and Scripting
Hi,
could anyone help me out how to write a script, to grep the two timestamp from a particular file, so that it will list out all the logs between the particular timestamp
I have a pattern of log:
servicename operationname starttime endtime
eg.,
servicename1 operationname1 01:11:11... (1 Reply)
Discussion started by: jacktolearn
1 Replies
6. Shell Programming and Scripting
how to check whether logs are updating or not in unix
is there any built in command or function ? (1 Reply)
Discussion started by: mail2sant
1 Replies
7. Shell Programming and Scripting
Hi Guys,
I want to write a script which can grep the logs (server.log) from a file for Error String and output to a other file.
Problems:
How to know about the errors only between the current restart and not in previous as server.log has earlier restarts also?
thanks for the help! Much... (5 Replies)
Discussion started by: ankur328
5 Replies
8. Shell Programming and Scripting
Hello,
I need to write one script which should search particular pattern like ABCD in log file name hello.txt only in current date logs.
in current directory i have so many past date logs but grep should be applied on current date logs.
on daily basis current date logs are in number 30 and... (2 Replies)
Discussion started by: ajju
2 Replies
9. Shell Programming and Scripting
I'm in need of some kind of script that will search for a string in each logfile in a directory but we don't want to use GREP. GREP seems to use up to much of our memory causing the server to use up a lot of swap space. Our log files are bigger than 500M on a daily basis. We lately started... (8 Replies)
Discussion started by: senormarquez
8 Replies
10. UNIX for Beginners Questions & Answers
Hi,
system date format
Thu Jun 13 12:55:18 EDT 2019
My log date format
09.148.192.60 - - "GET /akamai/sureroute-test-object.html HTTP/1.1" 404 231
can someone please help me, how to get last 5mins of logs please ? I need the command
Please wrap your samples/codes in CODE TAGS,... (3 Replies)
Discussion started by: scazed
3 Replies
link(2) System Calls Manual link(2)
NAME
link() - link to a file
SYNOPSIS
DESCRIPTION
The system call creates a new link (directory entry) for the existing file. path1 points to a path name naming an existing file. path2
points to a path name naming the new directory entry to be created.
RETURN VALUE
Upon successful completion, returns zero. Otherwise, it returns -1 and sets (see errno(2)) to indicate the error.
ERRORS
The system call fails and no link is created if one or more of the following is true:
A component of either path prefix denies search permission.
The requested link requires writing in a directory
that does not permit writing.
The user's or group's disk quota block limit has been reached for this file system.
The link named by
path2 exists.
path points outside the allocated address space of the process. The reliable detection of this error is implementation
dependent.
Too many symbolic links were encountered in translating either path name.
The maximum number of links to a file would be exceeded.
Either the specified path exceeds
bytes, or a component of either specified path exceeds while is in effect.
The file named by
path1 does not exist.
A component of either path prefix does not exist.
path2 points to a null path name.
path1 or path2 is null.
The directory to contain the file cannot be extended.
A component of either path prefix is not a directory.
The file named by
path1 is a directory and the effective user ID is not a user who has appropriate privileges. Some file systems
return this error whenever path1 names a directory, regardless of the user ID.
The requested link requires writing in a directory
on a read-only file system.
The link named by
path2 and the file named by path1 are on different logical devices (file systems).
SEE ALSO
cp(1), link(1M), symlink(2), unlink(2), symlink(4), privileges(5).
STANDARDS CONFORMANCE
link(2)