HEX
Server: LiteSpeed
System: Linux php-prod-3.spaceapp.ru 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: xnsbl7462 (1008)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/source-highlight/log.lang
vardef basic_time = '[[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2}'
vardef time = '\<' + $basic_time + '\>'
vardef ip = '[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\>'
vardef non_empty = '[^[:blank:]]+'

state date start '^[[:alpha:]]{3}[[:blank:]]{1,2}[[:digit:]]{1,2}(?=[[:blank:]]' + $basic_time + ')' begin
  state time start $time begin
    state symbol start $non_empty begin
      normal = ":" exitall
      function = '[^:\(\[]+'
      number delim "[" "]"
      number delim "(" ")"
    end
  end
end

state ip start '^' + $ip begin
  string = '[[:alnum:]]+(?=[[:blank:]]\[[[:digit:]]{2}/[[:alpha:]]{3}/[[:digit:]]{4})'
  date = '[[:digit:]]{2}/[[:alpha:]]{3}/[[:digit:]]{4}(?=:' + $basic_time + ')'
  time = $basic_time + '[[:blank:]][+-][[:digit:]]{4}'
  twonumbers = '[1-5][[:digit:]]{2}[[:blank:]][-0-9]+'
  state webmethod = "OPTIONS|GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT|PROPFIND|MKCOL|COPY|MOVE|LOCK|UNLOCK" begin
    string = $non_empty exit
  end
end

vardef weekday_date = '\[[[:alpha:]]{3}[[:blank:]][[:alpha:]]{3}[[:blank:]]{1,2}[[:digit:]]{1,2}[[:blank:]](?=' + $basic_time + ')'

state date start '^' + $weekday_date begin
  time = $time
  date = '[[:digit:]]{4}\]'
  date = $weekday_date
  string = "[error]"
  comment = "[notice]"
  ip = $ip
end

ip = $ip

string = "root","failure"

(normal,port) = `((?:port|pid)[[:blank:]])([[:digit:]]+)`

state normal start '[[:blank:]](?=(IN|OUT)=)' begin
  state normal = '(IN|OUT|PROTO)=(?=[^[:blank:]]+)' begin
    string = $non_empty exit
  end
  state normal = '(SPT|DPT|TYPE|SEQ)=(?=[^[:blank:]]+)' begin
    cbracket = $non_empty exit
  end
  number = "CWR|ECE|URG|ACK|PSH|RST|SYN|FIN"
  ip = $ip
end