Sponsored Content
Full Discussion: Grep Logs That Are Updating
Top Forums UNIX for Dummies Questions & Answers Grep Logs That Are Updating Post 302758185 by Carl2013 on Friday 18th of January 2013 02:50:40 PM
Old 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

Constantly updating log files (tail -f? grep? awk?)

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

Grep logs on the fly

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

Grep yesterday logs from weblogic logs

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

Grep for lines in web logs

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

how to grep the logs for two particular timestamp

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?

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

Script to grep logs for Errors

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

Grep a pattern in current date logs

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

Search string or words in logs without using Grep

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

Grep last 5 mins from logs

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
nondcesvc(4)															      nondcesvc(4)

NAME
nondcesvc - file for dceping(8) that lists non-DCE services. DESCRIPTION
dceping will ping services named in nondcesvc. Supported naming conventions for this file are: o CDS Name. Example entry: /.:/hosts/foo/someService NAMESPACE PROMPT /.:/hosts/foo/someService NAMESPACE NOPROMPT You can find CDS namespace entries by using the cdsbrowser(8) command. o RPC String Binding. Example entry: ncacn_ip_tcp:foo.entity.company.com[1755] STRING_BINDING You can obtain string bindings from the endpoint map maintained by rpcd. Use the command: rpccp show mappings. Note that the host name (foo.entity.company.com in the example) can be replaced with the IP address. o RPC Service Interface ID. Example entry: someOtherService INTERFACE_ID hostname When using this form of name, also include the same entry in the wellknownif file. Note in the examples above that NAMESPACE, STRING_BINDING, and INTERFACE_ID are literal strings that identify which naming convention is being used. PROMPT is a literal string that will associate a login context with the NAMESPACE Entry. This keyword will cause dceping to prompt the user for a principal and password that has sufficient rights to access the Entry. NOPROMPT does not cause prompting. PROMPT and NOPROMPT are supported by the NAMESPACE naming convention only. Environment Variables are supported in the Service Name. Use of these is similar to environment variable usage in the shell with the exception that the variable must reference an absolute name, and not another environment variable. Use of environment variables is sup- ported in all naming conventions. o Environment Variable Name. Example entry: /.:/hosts/foo/$SOME_SERVICE NAMESPACE PROMPT /.:/hosts/foo/bankServer$(CITY)$(STATE) NAMESPACE NOPROMPT $(SECD_STRING_BINDING) STRING_BINDING $(SECD_INTERFACE_ID) INTERFACE_ID hostname If you do not know the names of services that you want to ping before dceping is run, and/or you would like to determine such names at run- time by providing your own function, you may do so through an entry of the following form in nondcesvc: full_path_name_of_your_executable BUILD_SVCNAMES You specify your function's full path name in full_path_name_of_your_executable followed by the literal string BUILD_SVCNAMES. Your func- tion should generate, on its stdout, a file identical to the nondcesvc file with one difference. The output of the executable should not have any BUILD_SVCNAMES entry. It can however have any number of NAMESPACE, STRING_BINDING or INTERFACE_ID types of entries. Blank lines or lines beginning with # are ignored. You can use either spaces or tabs to separate items in a line. The string, endNonDCESvc, must occur in the last line of the file as an end of file indicator. FILE
/opt/dcelocal/hpadmin/etc/nondcesvc (for HP-UX version 9.x) /etc/opt/dce/hpadmin/etc/nondcesvc (for HP-UX version 10.x) SEE ALSO
dceping(8), wellknownif(4), rpccp(8), cdsbrowser(8) HP DCE
nondcesvc(4)
All times are GMT -4. The time now is 04:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy