05-12-2008
Can you provide us an example of how the execution of the application is performed?
What is the application and what OS are you running?
How big is the logfile that the application writes into. Do you stop the application at anytime or does it run 24x7 ??
Would be great if you could provide further information ...
Cheers,
Cameron
10 More Discussions You Might Find Interesting
1. 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
2. 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
3. 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
4. Shell Programming and Scripting
I have prepare script to grep for outofmemory messages in the logs. I need help in modifying script. I have implemented small logic. The outofmemory messages form six logs will store in variables.
var1=`grep -i outofmemory $tomcat1logs | sed -n '$p'| sed -n -e "s/.*\(outofmemory\).*/\1/p"`... (6 Replies)
Discussion started by: coolguyamy
6 Replies
5. Shell Programming and Scripting
I have requirement to prepare script which will grep for latest outofmemory message from the logs. I have used following command to grep the string from the logs,this script is not effective when logs are not getting updated as it will grep for old message.
f=catalina.out
var=`tail -10 $f |... (17 Replies)
Discussion started by: coolguyamy
17 Replies
6. UNIX for Dummies Questions & Answers
Hello all. I am new to this forum and also very new to using grep - so please excuse me if this question is not in the correct forum and/or is not pertinent to this website.
I use greps like this:
gunzip -c L:\System1\SailLogger_20071019* L:\System2\SailLogger_20071019*... (14 Replies)
Discussion started by: Carl2013
14 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
inets(3erl) Erlang Module Definition inets(3erl)
NAME
inets - The inets services API
DESCRIPTION
This module provides the most basic API to the clients and servers, that are part of the Inets application, such as start and stop.
COMMON DATA TYPES
Type definitions that are used more than once in this module:
service() = ftpc | tftp | httpc | httpd
property() = atom()
EXPORTS
services() -> [{Service, Pid}]
Types Service = service()
Pid = pid()
Returns a list of currently running services.
Note:
Services started as stand_alone will not be listed.
services_info() -> [{Service, Pid, Info}]
Types Service = service()
Pid = pid()
Info = [{Option, Value}]
Option = property()
Value = term()
Returns a list of currently running services where each service is described by a [{Option, Value}] list. The information given in
the list is specific for each service and it is probable that each service will have its own info function that gives you even more
details about the service.
service_names() -> [Service]
Types Service = service()
Returns a list of available service names.
start() ->
start(Type) -> ok | {error, Reason}
Types Type = permanent | transient | temporary
Starts the Inets application. Default type is temporary. See also application(3erl)
stop() -> ok
Stops the inets application. See also application(3erl)
start(Service, ServiceConfig) -> {ok, Pid} | {error, Reason}
start(Service, ServiceConfig, How) -> {ok, Pid} | {error, Reason}
Types Service = service()
ServiceConfig = [{Option, Value}]
Option = property()
Value = term()
How = inets | stand_alone - default is inets
Dynamically starts an inets service after the inets application has been started.
Note:
Dynamically started services will not be handled by application takeover and failover behavior when inets is run as a distributed applica-
tion. Nor will they be automatically restarted when the inets application is restarted, but as long as the inets application is up and run-
ning they will be supervised and may be soft code upgraded. Services started as stand_alone , e.i. the service is not started as part of
the inets application, will lose all OTP application benefits such as soft upgrade. The "stand_alone-service" will be linked to the process
that started it. In most cases some of the supervision functionality will still be in place and in some sense the calling process has now
become the top supervisor.
stop(Service, Reference) -> ok | {error, Reason}
Types Service = service() | stand_alone
Reference = pid() | term() - service specified reference
Reason = term()
Stops a started service of the inets application or takes down a "stand_alone-service" gracefully. When the stand_alone option is
used in start, only the pid is a valid argument to stop.
SEE ALSO
ftp(3erl) , httpc(3erl) , httpd(3erl) , tftp(3erl)
Ericsson AB inets 5.5.2 inets(3erl)