Skip to content

Instantly share code, notes, and snippets.

@smarj
Created January 10, 2013 16:27
Show Gist options
  • Save smarj/4503475 to your computer and use it in GitHub Desktop.
Save smarj/4503475 to your computer and use it in GitHub Desktop.
ISA W3C Logging Fields as a Ruby Hash
FLD = { "c-ip" => 0, "cs-username" => 1, "c-agent" => 2, "sc-authenticated" => 3, "date" => 4, "time" => 5, "s-svcname" => 6,
"s-computername" => 7, "cs-referred" => 8, "r-host" => 9, "r-ip" => 10,
"r-port" => 11, "time-taken" => 12, "sc-bytes" => 13, "cs-bytes" => 14,
"cs-protocol" => 15, "cs-transport" => 16, "s-operation" => 17,
"cs-uri" => 18, "cs-mime-type" => 19, "s-object-source" => 20,
"sc-status" => 21, "s-cache-info" => 22, "rule" => 23,
"FilterInfo" => 24, "cs-Network" => 25, "sc-Network" => 26,
"error-info" => 27, "action" => 28, "GmtLogTime" => 29,
"AuthenticationServer" => 30 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment