This file is indexed.

/usr/share/source-highlight/log.lang is in libsource-highlight-common 3.1.7-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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