0

I need the unix command to fetch out the query that got executed more than 1 sec from a log file using sed/awk. $11 is time stamp.

Pl suggest awk script to print all the query that executed more than 1 sec

the log file pattern looks as below,

"PUT /XXX/YYY/test/1/test/1/test/json/query HTTP/1.1" 111 111 5.019
Wiktor Stribiżew
  • 607,720
  • 39
  • 448
  • 563
  • I'm sorry, but I don't understand your question! In your sample, the query is `PUT`... What kind of information are you searching for? What kind of log (server), which tool are you using for displaying logs? – F. Hauri - Give Up GitHub Feb 01 '22 at 10:43
  • Hi ,i am trying to take the query from a log file in unix. In the PUT query above the 11th place holder is the time I am looking for .I want to pull out all the query from a log file log.txt whose time of execution is >1ms – user15958051 Feb 02 '22 at 01:15
  • There is no _11th place holder_ in your _log file pattern_. – Armali Feb 10 '22 at 10:10
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Feb 11 '22 at 13:27

0 Answers0