This file is indexed.

/usr/share/logtail/detectrotate/20-logrotate.dtr is in logtail 1.3.15.

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

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#!/usr/bin/perl

sub {
  my ($filename) = @_;
  my $rotated_filename="";
  if (-e "$filename.1") {
    # assume the log is rotated by logrotate(8)
    # should also probably check if file is still fresh
    $rotated_filename="$filename.1";
  }
  return $rotated_filename;
}