awk script to find time difference between HTTP PUT and HTTP DELETE requests in access.log
Hi,
I'm trying to write a script to determine the time gap between HTTP PUT and HTTP DELETE requests in the HTTP Servers access log.
Normally client will do HTTP PUT to push content e.g. file_1.txt and 21 seconds later it will do HTTP DELETE, but sometimes the time varies causing some issues on the server side.
The format of the log is as below:
So from above I'd need to first find the time stamp e.g. when file_30.txt was pushed in, then find the HTTP DELETE for the file_30.txt and then determine the time difference. (file_30.txt just and example as this would need to be done to every file pushed in)
So it would be the 2 following lines
2016-07-06 11:09:04 [127.0.0.2] [PUT Revive Adserver HTTP/1.1] [201]
2016-07-06 11:09:25 [127.0.0.2] [DELETE Revive Adserver HTTP/1.1] [404]
So time difference would be: 11:09:25 - 11:09:04 = 21seconds
And output would be something like:
File: file_30.txt, difference: 21sec
I'm trying to use awk script to do this but I'm not very familiar with it so I've just started with the following(which might be totally stupid) so if anyone would have ideas on how to go about writing the script to achieve my goal it would be great:
On a sparc solaris 8 host running sunone webserver 6 I would like to limit the http requests that can be used when port 80 is accessed. We currently have http/1.0 enabled.
For example I would like to remove the http request DELETE.
Regards,
BLP (1 Reply)
Hi folks,
I am trying to build this GUI application that will perform some http requests to a specific server.
Basically I will use curl to "pretend" that it is a browser a sending an http request from a form.
My http knowledge is very low, and the site is tricky, but I think if I could... (3 Replies)
Discussion started by: fundidor
3 Replies
3. Forum Support Area for Unregistered Users & Account Problems
Folks,
Hope this is not a newbie question, but it might end up being that.
I wanted to retrieve the source code for unix_linux_bench as directed on https://www.unix.com/linux-benchmarks/11175-instructions-linux-benchmarks.html
When one clicks on the links specified for download, the browser... (1 Reply)
I do not know the difference between the apache-http and the apche-Tomcat.Is they are differentiated on their version or on their features.:confused: (2 Replies)
hi
am senthil
am developing a software to send and receive SMS using HTTP connection
first of all am forming a URL and sending that URL to a remote server using my Client Program
i send that url through Socket(using Send() Function)
if i send more than one URL one by one using the same... (0 Replies)
hi
am senthil
am developing a software to send and receive SMS using HTTP connection
first of all am forming a URL and sending that URL to a remote server using my Client Program
i send that url through Socket(using Send() Function)
if i send more than one URL one by one using the same... (4 Replies)
Hi friends,
A script needs to be created to collect all HTTP GET requests containing a particular string say abcd.gif in the url path along with the IP address of the client that issued the request. The source of this data is the web server logs. Also Each script execution should extract... (4 Replies)
Hypertext Transfer Protocol -- HTTP/1.1 for Reference - HTTP Headers
10 Status Code Definitions
Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation required in the response. (1 Reply)
I have some code that I have been playing around with learning Java:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
... (1 Reply)
Discussion started by: metallica1973
1 Replies
LEARN ABOUT DEBIAN
bup-web
bup-ftp(1) General Commands Manual bup-ftp(1)NAME
bup-web - Start web server to browse bup repositiory
SYNOPSIS
bup web [[hostname]:port]
DESCRIPTION
bup web starts a web server that can browse bup repositories. The file hierarchy is the same as that shown by bup-fuse(1), bup-ls(1) and
bup-ftp(1).
hostname and port default to 127.0.0.1 and 8080, respectively, and hence bup web will only offer up the web server to locally running
clients. If you'd like to expose the web server to anyone on your network (dangerous!) you can omit the bind address to bind to all avail-
able interfaces: :8080.
EXAMPLE
$ bup web
Serving HTTP on 127.0.0.1:8080...
^C
$ bup web :8080
Serving HTTP on 0.0.0.0:8080...
^C
SEE ALSO bup-fuse(1), bup-ls(1), bup-ftp(1), bup-restore(1)BUP
Part of the bup(1) suite.
AUTHORS
Joe Beda <jbeda@gmail.com>.
Bup unknown-bup-ftp(1)