in_tailã®formatã«æ£è¦è¡¨ç¾ãæ¸ãæã¯ã (ä¿®æ£âè¨å®ãã¡ã¤ã«èªã¿è¾¼ã¿â確èª) x nã¨ãã¦ã¾ãããã ãã£ã¨ç°¡åã«ãã¹ããããã£ãã®ã§ãformatã§ä½¿ç¨ããæ£è¦è¡¨ç¾ã®ãã¹ãæ¹æ³ã調ã¹ã¦ã¿ã¾ããã ã½ã¼ã¹ãè¦ã¦ã¿ãã¨ãã©ãããfluent/parserã®"RegexpParser"ã¯ã©ã¹ã§æ£è¦è¡¨ç¾ã®è§£æãè¡ãªã£ã¦ããã¿ãããªã®ã§ããã®ã¯ã©ã¹ã§ãã¹ãããã¦ã¿ã¾ããã ããã§å°ã楽ã«ï¼ require 'time' require 'fluent/log' require 'fluent/config' require 'fluent/engine' require 'fluent/parser' $log ||= Fluent::Log.new format = /^\[(?<time>[^\]]*)\] (?<log>.*)$/ time_format = '%Y/%m/%d
{{#tags}}- {{label}}
{{/tags}}