mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 08:47:06 +02:00
15 lines
267 B
Ruby
15 lines
267 B
Ruby
class TutorialsController < ApplicationController
|
|
before_action :find_fluentd
|
|
|
|
def index
|
|
@log = @fluentd.agent.log_tail.reverse if @fluentd
|
|
end
|
|
|
|
private
|
|
|
|
def find_fluentd
|
|
# NOTE: use first fluentd for tutorial
|
|
@fluentd = Fluentd.first
|
|
end
|
|
end
|