require "sinatra" require 'logger' logger = Logger.new('sinatra02.log') get '/' do logger.info "log from 02" 'Hello app 02' end <source> type tail path /path/to/sinatra01.log format /^(?<date>[^ ]+)\s+(?<duration>.*) (?<client address>.*) (?<result code>.*) (?<bytes>.*) (?<request method>.*) (?<url>.*) (?<rfc931>.*) (?<hierarchy code>.*) (?<type>.*)$/ pos_file /var/log/fluent/messages.pos tag sina