sponsor Vim development Vim logo Vim Book Ad

httplog : Highlight access log of Apache, nginx, etc

 script karma  Rating 19/13, Downloaded by 3213  Comments, bugs, improvements  Vim wiki

created by
lilydjwg
 
script type
syntax
 
description
This is a simple syntax file to highlight access log of several HTTP servers (with the default log format).

localhost's IP, LAN IP will be highlighted differently and 5xx HTTP status code will be highlighted in ErrorMsg. And names of a few browsers and other clients in the user agent string will be highlighted too.
 
install details
Put it in your syntax directory. You can add this to your filetype.vim  to make Vim recognize the log files:
  au BufRead *access.log* setf httplog
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
httplog.vim 0.5 2013-08-31 7.0 lilydjwg * more user agents
httplog.vim 0.4 2012-11-28 7.0 lilydjwg - Match three missing HTTP requests (OPTIONS, PATCH and TRACE).
- Match 172.16.0.0 - 172.31.255.255 IP address range for LAN.
    
Thanks to Audrius Kažukauskas.
httplog.vim 0.3 2012-11-27 7.0 lilydjwg * update user agent matching
* update ip address matching
httplog.vim 0.2 2011-05-06 7.0 lilydjwg Fix HTTP status code highlighting.
httplog.vim 0.1 2010-03-09 6.0 lilydjwg Initial upload
ip used for rating: 18.118.254.94

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github