Concluído

quick script

Looking for someone to write a small script to check a log file. Here is the requirement.

Here is a sample of a logfile from one of our servers. Please write a script in Python that can do all the following:

● Counts the number of occurrences of a string provided as an argument

● Reports the average time elapsed between occurrences of the string

● Prints the log, but translates timestamps of each occurrence into PST

An example would/could look like

#> bash [url removed, login to view] uptimerobot [url removed, login to view]

Nov 28 11:50:25 ip-10-0-10-133 docker/FrontendService (76e763f70997)[2541]: [url removed, login to view] - - [28/Nov/2016:19:50:25 -0800] "HEAD / HTTP/1.1" 200 0 "[url removed, login to view]" "Mozilla/5.0+(compatible; UptimeRobot/2.0; [url removed, login to view])"

Nov 28 12:11:58 ip-10-0-10-133 docker/FrontendService (76e763f70997)[2541]: [url removed, login to view] - - [28/Nov/2016:20:11:58 -0800] "HEAD / HTTP/1.1" 200 0 "[url removed, login to view]" "Mozilla/5.0+(compatible; UptimeRobot/2.0; [url removed, login to view])"

Nov 28 12:18:58 ip-10-0-10-133 docker/FrontendService (76e763f70997)[2541]: [url removed, login to view] - - [28/Nov/2016:20:18:58 -0800] "HEAD / HTTP/1.1" 200 0 "[url removed, login to view]" "Mozilla/5.0+(compatible; UptimeRobot/2.0; [url removed, login to view])"

Nov 28 13:25:07 ip-10-0-10-133 docker/FrontendService (76e763f70997)[2541]: [url removed, login to view] - - [28/Nov/2016:21:25:07 -0800] "HEAD / HTTP/1.1" 200 0 "[url removed, login to view]" "Mozilla/5.0+(compatible; UptimeRobot/2.0; [url removed, login to view])"

Nov 28 14:18:20 ip-10-0-10-133 docker/FrontendService (76e763f70997)[2541]: [url removed, login to view] - - [28/Nov/2016:22:18:20 -0800] "HEAD / HTTP/1.1" 200 0 "[url removed, login to view]" "Mozilla/5.0+(compatible; UptimeRobot/2.0; [url removed, login to view])"

Nov 28 14:30:06 ip-10-0-10-133 docker/FrontendService (76e763f70997)[2541]: [url removed, login to view] - - [28/Nov/2016:14:30:06 -0800] "HEAD / HTTP/1.1" 200 0 "[url removed, login to view]" "Mozilla/5.0+(compatible; UptimeRobot/2.0; [url removed, login to view])"

Nov 28 15:00:05 ip-10-0-10-133 docker/FrontendService (76e763f70997)[2541]: [url removed, login to view] - - [28/Nov/2016:15:00:05 -0800] "HEAD / HTTP/1.1" 200 0 "[url removed, login to view]" "Mozilla/5.0+(compatible; UptimeRobot/2.0; [url removed, login to view])"

Nov 28 15:07:33 ip-10-0-10-133 docker/FrontendService (76e763f70997)[2541]: [url removed, login to view] - - [28/Nov/2016:15:07:33 -0800] "HEAD / HTTP/1.1" 200 0 "[url removed, login to view]" "Mozilla/5.0+(compatible; UptimeRobot/2.0; [url removed, login to view])"

8 occurances

Mean time elapsed between occurances: 1689.71 seconds

Habilidades: Coding

Veja mais: an example of advert looking for a person with financial skills, looking for a job as an expert of chinese economy in germany, looking for a job as an assistant mechanic in australia, quickscript translator, quick scripts austin, quick scripts courier reviews, quick script for acting, quick script pharmacy, quickscript manual, quick scripts courier, learn quickscript, cms, design, seo, php, android, marketing, java, mysql, html

Acerca do Empregador:
( 0 comentários ) United States

ID do Projeto: #16689208

Concedido a:

pauldic

Lets get this done, I can deliver this project within the next 3-5hrs and will be glad to get started as soon as possible

$50 USD em 0 dias
(0 Comentários)
0.0

5 freelancers estão ofertando em média $109 para esse trabalho

schoudhary1553

Hello, I have the good knowledge of quick script. I have more than 5 years of experience in Coding . We have worked on several similar projects before! We have worked on 300+ Projects. Please check the profile rev Mais

$200 USD in 3 dias
(1 Comentário)
2.3
AShegavker

Hello Sir, I am having experience from past 5 years & achieved 30+ client projects for Web development. I can achieve the results that you are asking for. Looking forward from your end. Thanks

$111 USD in 3 dias
(0 Comentários)
0.0
rishiajmera

Hello, Greetings! With a proven track record of successful achievements, I am pleased to present my application for your consideration as a Freelancer. Please have a look at my profile and portfolio to get an idea a Mais

$155 USD in 3 dias
(0 Comentários)
0.0
sabaramalingam78

Your script is almost ready... ! I can do this in bash script as well.. Ignore my previous message. I well versed with python programming, and this can be done in a couple of hours max. I assume you want the search Mais

$30 USD in 3 dias
(0 Comentários)
0.0