02-04-2009
Get Data Between a specific Date Range from logs
I need to extract data from logs for a mentioned date range..Its quite urgent can anyone help me out with it..its to be written in unix..just thought its better to specify..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi , I am having a script which will start a process and appends the process related logs to a log file. The log file writes logs with every line starting with date in the format of: date +"%Y %b %d %H:%M:%S".
So, in the script, before I start the process, I am storing the date as DATE=`date +"%Y... (5 Replies)
Discussion started by: chiru_h
5 Replies
2. Shell Programming and Scripting
I am new to Unix so will really appreciate if someone can guide me on this.
What I want to do is:
Step1: Read binary file - pick first 2 bytes, convert from hex to decimal. Read the next 3 bytes as well.
2 bytes will specify the number of bytes 'n' that I want to read and write... (1 Reply)
Discussion started by: Kbenipel
1 Replies
3. Shell Programming and Scripting
Hi All,
I'm still a newbie in perl programming. I have a data below say in test.tmp
The output in test.tmp will be the same data as above sample in test.tmp . So after i get all the 4th column data within the range of month and year i need, then i will use the foreach () code to execute... (1 Reply)
Discussion started by: miskin
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
we have file name appended by date in yymmdd format .. ex: abc090101.dat
I need to copy all the files between abc090101 to abc090331..
could you plz help me..
Thanks. (1 Reply)
Discussion started by: kolariya4u
1 Replies
5. Shell Programming and Scripting
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Discussion started by: Wynner
3 Replies
6. Shell Programming and Scripting
Hi,
Currently I am working on a script to automate the process of converting the log file from binary into text format. To achieve this, partly I am depending on my application’s utility for this conversion and the rest I am relying on shell commands to search for directory, locate the file and... (5 Replies)
Discussion started by: svajhala
5 Replies
7. Shell Programming and Scripting
HI,
I want to search for a logs which are trace between specific date and time from logs file.
My logs are generated like this :-
Tue Jun 18 05:00:02 EEST 2013 | file_check.sh| Message:script has files to process.
Thu Jun 20 05:00:02 EEST 2013 | file_check.sh| Message:script has files to... (5 Replies)
Discussion started by: ketanraut
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have log file which rolls out every second which is as this.
HttpGenRequest - -<!--OXi dbPublish--> <created="2014-03-24 23:45:37" lastMsgId="" requestTime="0.0333"> <response request="getOutcomeDetails" code="114" message="Request found no matching data" debug="" provider="undefined"/>... (3 Replies)
Discussion started by: karthikprakash
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have logfile like this..
=== 2014-02-09 15:46:59,936 INFO RequestContext - URL: '/eyisp/sc/skins/EY/images/pickers/comboBoxPicker_Over.png', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko': Unsupported with Accept-Encoding header
=== 2015-02-09... (8 Replies)
Discussion started by: kishk
8 Replies
10. Shell Programming and Scripting
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
t_look(3) Library Functions Manual t_look(3)
NAME
t_look() - look at the current event on a transport endpoint
SYNOPSIS
DESCRIPTION
The function returns the current event on the transport endpoint specified by fd. This function enables a transport provider to notify a
transport user of an asynchronous event when the user is calling functions in synchronous mode. Certain events require immediate notifica-
tion of the user and are indicated by a specific error, [TLOOK], on the current or next function to be executed.
This function also enables a transport user to poll a transport endpoint periodically for asynchronous events.
Valid States
All - apart from
XTI Internet Protocol-specific Information
As soon as a segment with the TCP urgent pointer set enters the TCP receive buffer, the event is indicated. remains set until all data up
to the byte pointed to by the TCP urgent pointer has been received. If the urgent pointer is updated, and the user has not yet received
the byte previously pointed to by the urgent pointer, the update is transparent to the user.
Fork Safety
is not fork-safe.
RETURN VALUE
Upon success, returns a value that indicates which of the following allowable events has occurred, or returns zero if no event exists. One
of the following events is returned:
T_LISTEN connection indication received.
T_CONNECT connect confirmation received.
T_DATA normal data received.
T_ERROR (TLI ONLY) fatal error occurred.
T_EXDATA expedited data received.
T_DISCONNECT disconnect received.
T_UDERR datagram error indication.
T_ORDREL orderly release indication.
T_GODATA (XTI only) flow control restrictions on normal data flow have been lifted. Normal data may be sent again.
T_GOEXDATA (XTI only) flow control restrictions on expedited data flow have been lifted. Expedited data may be sent again.
ERRORS
On failure, is set to one of the following:
[TBADF] The specified identifier does not refer to a transport endpoint.
[TSYSERR] A system error has occurred during execution of this function.
[TPROTO] (XTI only) This error indicates that a communication problem has been detected between XTI and the transport provider for
which there is no suitable XTI (
SEE ALSO
t_open(3), t_snd(3), t_sndudata(3), thread_safety(5).
STANDARDS CONFORMANCE
t_look(3)