diff --git a/columnsFormat.rb b/columnsFormat.rb index ab6c323..997f92b 100755 --- a/columnsFormat.rb +++ b/columnsFormat.rb @@ -64,7 +64,6 @@ def Format.columnsFormat(line,dataset,option,filter) elsif dataset==3 #- nodeIP userIP - verb url httpref HttpStatus length dataSz duration - useragent host - type userID timestamp country - h['IPport']=(part[1]+":"+part[16]).split(":").last h['uIP']=part[2] h['verb']=part[4] @@ -72,7 +71,7 @@ def Format.columnsFormat(line,dataset,option,filter) return nil end h['host']=part[13].gsub(":80","") - if h['host'].include? ".." or h['host']=="" or h['host']=="." or h['host'].size<3 or h['host'].include? "??????" or part[5]=="/" + if h['host'].include? ".." or h['host']=="" or h['host']=="." or h['host'].size<3 or h['host'].include? "??" or part[5]=="/" return nil end h['httpRef']=part[6]