How to display the logs on the basis of a specific Date & Time range in Red Hat Enterprise Linux?

Solution Unverified - Updated -

Issue

  • While displaying the logs on the basis of Date & Time, following does not work:
sed -n '/Sat Feb 27 22:51:27 IST 2015 /,/Sat Feb 28 04:51:27 IST 2015 /p' /var/log/httpd/error_log

Environment

  • Red Hat Enterprise Linux 6.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content