Module: Fluent

Defined in:
lib/fluent/clock.rb,
lib/fluent/env.rb,
lib/fluent/log.rb,
lib/fluent/rpc.rb,
lib/fluent/tls.rb,
lib/fluent/test.rb,
lib/fluent/time.rb,
lib/fluent/agent.rb,
lib/fluent/error.rb,
lib/fluent/event.rb,
lib/fluent/input.rb,
lib/fluent/label.rb,
lib/fluent/match.rb,
lib/fluent/mixin.rb,
lib/fluent/config.rb,
lib/fluent/engine.rb,
lib/fluent/filter.rb,
lib/fluent/output.rb,
lib/fluent/parser.rb,
lib/fluent/plugin.rb,
lib/fluent/counter.rb,
lib/fluent/process.rb,
lib/fluent/version.rb,
lib/fluent/registry.rb,
lib/fluent/test/log.rb,
lib/fluent/timezone.rb,
lib/fluent/win32api.rb,
lib/fluent/formatter.rb,
lib/fluent/plugin_id.rb,
lib/fluent/test/base.rb,
lib/fluent/unique_id.rb,
lib/fluent/capability.rb,
lib/fluent/config/dsl.rb,
lib/fluent/daemonizer.rb,
lib/fluent/oj_options.rb,
lib/fluent/root_agent.rb,
lib/fluent/supervisor.rb,
lib/fluent/command/ctl.rb,
lib/fluent/plugin/base.rb,
lib/fluent/compat/input.rb,
lib/fluent/config/error.rb,
lib/fluent/config/types.rb,
lib/fluent/configurable.rb,
lib/fluent/event_router.rb,
lib/fluent/file_wrapper.rb,
lib/fluent/output_chain.rb,
lib/fluent/plugin/input.rb,
lib/fluent/test/helpers.rb,
lib/fluent/compat/filter.rb,
lib/fluent/compat/output.rb,
lib/fluent/compat/parser.rb,
lib/fluent/config/parser.rb,
lib/fluent/counter/error.rb,
lib/fluent/counter/store.rb,
lib/fluent/plugin/buffer.rb,
lib/fluent/plugin/filter.rb,
lib/fluent/plugin/output.rb,
lib/fluent/plugin/parser.rb,
lib/fluent/plugin/sd_srv.rb,
lib/fluent/plugin_helper.rb,
lib/fluent/system_config.rb,
lib/fluent/config/element.rb,
lib/fluent/config/section.rb,
lib/fluent/counter/client.rb,
lib/fluent/counter/server.rb,
lib/fluent/plugin/metrics.rb,
lib/fluent/plugin/sd_file.rb,
lib/fluent/plugin/storage.rb,
lib/fluent/variable_store.rb,
lib/fluent/command/cap_ctl.rb,
lib/fluent/msgpack_factory.rb,
lib/fluent/plugin/buf_file.rb,
lib/fluent/test/input_test.rb,
lib/fluent/compat/exec_util.rb,
lib/fluent/compat/file_util.rb,
lib/fluent/compat/formatter.rb,
lib/fluent/config/v1_parser.rb,
lib/fluent/plugin/exec_util.rb,
lib/fluent/plugin/file_util.rb,
lib/fluent/plugin/formatter.rb,
lib/fluent/plugin/sd_static.rb,
lib/fluent/test/driver/base.rb,
lib/fluent/test/filter_test.rb,
lib/fluent/test/output_test.rb,
lib/fluent/test/parser_test.rb,
lib/fluent/counter/validator.rb,
lib/fluent/plugin/buf_memory.rb,
lib/fluent/plugin/out_stream.rb,
lib/fluent/plugin/parser_csv.rb,
lib/fluent/plugin/parser_tsv.rb,
lib/fluent/test/driver/input.rb,
lib/fluent/compat/socket_util.rb,
lib/fluent/compat/string_util.rb,
lib/fluent/config/yaml_parser.rb,
lib/fluent/counter/mutex_hash.rb,
lib/fluent/plugin/bare_output.rb,
lib/fluent/plugin/parser_json.rb,
lib/fluent/plugin/parser_ltsv.rb,
lib/fluent/plugin/parser_none.rb,
lib/fluent/plugin/socket_util.rb,
lib/fluent/plugin/string_util.rb,
lib/fluent/test/driver/filter.rb,
lib/fluent/test/driver/output.rb,
lib/fluent/test/driver/parser.rb,
lib/fluent/command/ca_generate.rb,
lib/fluent/compat/output_chain.rb,
lib/fluent/compat/parser_utils.rb,
lib/fluent/config/basic_parser.rb,
lib/fluent/counter/base_socket.rb,
lib/fluent/log/console_adapter.rb,
lib/fluent/plugin/buffer/chunk.rb,
lib/fluent/plugin/compressable.rb,
lib/fluent/plugin/multi_output.rb,
lib/fluent/plugin/parser_nginx.rb,
lib/fluent/plugin_helper/timer.rb,
lib/fluent/test/driver/storage.rb,
lib/fluent/test/formatter_test.rb,
lib/fluent/plugin/formatter_csv.rb,
lib/fluent/plugin/formatter_tsv.rb,
lib/fluent/plugin/metrics_local.rb,
lib/fluent/plugin/parser_apache.rb,
lib/fluent/plugin/parser_regexp.rb,
lib/fluent/plugin/parser_syslog.rb,
lib/fluent/plugin/storage_local.rb,
lib/fluent/plugin_helper/inject.rb,
lib/fluent/plugin_helper/parser.rb,
lib/fluent/plugin_helper/server.rb,
lib/fluent/plugin_helper/socket.rb,
lib/fluent/plugin_helper/thread.rb,
lib/fluent/compat/type_converter.rb,
lib/fluent/config/literal_parser.rb,
lib/fluent/plugin/formatter_hash.rb,
lib/fluent/plugin/formatter_json.rb,
lib/fluent/plugin/formatter_ltsv.rb,
lib/fluent/plugin/owned_by_mixin.rb,
lib/fluent/plugin/parser_apache2.rb,
lib/fluent/plugin/parser_msgpack.rb,
lib/fluent/plugin_helper/counter.rb,
lib/fluent/plugin_helper/extract.rb,
lib/fluent/plugin_helper/metrics.rb,
lib/fluent/plugin_helper/storage.rb,
lib/fluent/test/driver/formatter.rb,
lib/fluent/test/startup_shutdown.rb,
lib/fluent/compat/formatter_utils.rb,
lib/fluent/config/configure_proxy.rb,
lib/fluent/plugin/buf_file_single.rb,
lib/fluent/static_config_analysis.rb,
lib/fluent/test/driver/base_owned.rb,
lib/fluent/test/driver/base_owner.rb,
lib/fluent/compat/call_super_mixin.rb,
lib/fluent/fluent_log_event_router.rb,
lib/fluent/plugin/formatter_stdout.rb,
lib/fluent/plugin/parser_multiline.rb,
lib/fluent/plugin_helper/formatter.rb,
lib/fluent/compat/propagate_default.rb,
lib/fluent/compat/set_tag_key_mixin.rb,
lib/fluent/plugin/buffer/file_chunk.rb,
lib/fluent/plugin/formatter_msgpack.rb,
lib/fluent/plugin/service_discovery.rb,
lib/fluent/plugin_helper/event_loop.rb,
lib/fluent/test/driver/event_feeder.rb,
lib/fluent/test/driver/multi_output.rb,
lib/fluent/compat/set_time_key_mixin.rb,
lib/fluent/config/yaml_parser/loader.rb,
lib/fluent/config/yaml_parser/parser.rb,
lib/fluent/plugin/formatter_out_file.rb,
lib/fluent/plugin_helper/cert_option.rb,
lib/fluent/plugin_helper/http_server.rb,
lib/fluent/plugin_helper/retry_state.rb,
lib/fluent/compat/record_filter_mixin.rb,
lib/fluent/plugin/buffer/memory_chunk.rb,
lib/fluent/plugin/parser_apache_error.rb,
lib/fluent/compat/detach_process_mixin.rb,
lib/fluent/plugin_helper/child_process.rb,
lib/fluent/plugin_helper/event_emitter.rb,
lib/fluent/plugin_helper/socket_option.rb,
lib/fluent/compat/handle_tag_name_mixin.rb,
lib/fluent/plugin/formatter_single_value.rb,
lib/fluent/plugin_helper/http_server/app.rb,
lib/fluent/plugin_helper/record_accessor.rb,
lib/fluent/test/driver/test_event_router.rb,
lib/fluent/compat/structured_format_mixin.rb,
lib/fluent/config/yaml_parser/fluent_value.rb,
lib/fluent/plugin/buffer/file_single_chunk.rb,
lib/fluent/plugin_helper/compat_parameters.rb,
lib/fluent/plugin_helper/service_discovery.rb,
lib/fluent/compat/handle_tag_and_time_mixin.rb,
lib/fluent/plugin_helper/http_server/router.rb,
lib/fluent/plugin_helper/http_server/server.rb,
lib/fluent/plugin_helper/http_server/methods.rb,
lib/fluent/plugin_helper/http_server/request.rb,
lib/fluent/config/yaml_parser/section_builder.rb,
lib/fluent/plugin_helper/http_server/compat/server.rb,
lib/fluent/plugin_helper/service_discovery/manager.rb,
lib/fluent/plugin_helper/http_server/ssl_context_builder.rb,
lib/fluent/plugin_helper/http_server/compat/webrick_handler.rb,
lib/fluent/plugin_helper/service_discovery/round_robin_balancer.rb,
lib/fluent/plugin_helper/http_server/compat/ssl_context_extractor.rb

Overview

Fluentd

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Defined Under Namespace

Modules: ChunkMessagePackEventStreamer, Clock, Compat, Config, Configurable, Counter, FileWrapper, FluentSigdump, MessagePackFactory, Plugin, PluginHelper, PluginId, PluginLoggerMixin, RPC, ServerModule, TLS, Test, TimeMixin, UniqueId, Win32API, WorkerModule Classes: Agent, AllMatchPattern, ArrayEventStream, CaGenerate, CapCtl, Capability, CompressedMessagePackEventStream, ConfigError, ConfigParseError, Ctl, Daemonizer, EngineClass, EventRouter, EventStream, EventTime, FluentLogEventRouter, GlobMatchPattern, InvalidLockDirectory, InvalidRootDirectory, Label, Log, LogDeviceIO, MatchPattern, MessagePackEventStream, MixedTimeParser, MultiEventStream, NoMatchMatch, NotFoundPluginError, NullFluentLogEventRouter, NumericTimeFormatter, NumericTimeParser, ObsoletedParameterError, OjOptions, OneEventStream, OrMatchPattern, PluginLogger, Registry, RootAgent, SetDefault, SetNil, StaticConfigAnalysis, StreamOutput, Supervisor, SystemConfig, TcpOutput, TimeFormatter, TimeParser, Timezone, UncatchableError, UnixOutput, UnrecoverableError, VariableStore, WindowsFile

Constant Summary collapse

DEFAULT_CONFIG_PATH =
ENV['FLUENT_CONF'] || '/etc/fluent/fluent.conf'
DEFAULT_PLUGIN_DIR =
ENV['FLUENT_PLUGIN'] || '/etc/fluent/plugin'
DEFAULT_SOCKET_PATH =
ENV['FLUENT_SOCKET'] || '/var/run/fluent/fluent.sock'
DEFAULT_BACKUP_DIR =
ENV['FLUENT_BACKUP_DIR'] || '/tmp/fluent'
DEFAULT_OJ_OPTIONS =
Fluent::OjOptions.load_env
DEFAULT_DIR_PERMISSION =
0755
DEFAULT_FILE_PERMISSION =
0644
Input =
Fluent::Compat::Input
RecordFilterMixin =
Fluent::Compat::RecordFilterMixin
HandleTagNameMixin =
Fluent::Compat::HandleTagNameMixin
SetTimeKeyMixin =
Fluent::Compat::SetTimeKeyMixin
SetTagKeyMixin =
Fluent::Compat::SetTagKeyMixin
TypeConverter =
Fluent::Compat::TypeConverter
Engine =
EngineClass.new
Filter =
Fluent::Compat::Filter
Output =
Fluent::Compat::Output
BufferedOutput =
Fluent::Compat::BufferedOutput
ObjectBufferedOutput =
Fluent::Compat::ObjectBufferedOutput
TimeSlicedOutput =
Fluent::Compat::TimeSlicedOutput
MultiOutput =
Fluent::Compat::MultiOutput
BufferQueueLimitError =

Some input plugins refer BufferQueueLimitError for throttling

Fluent::Compat::BufferQueueLimitError
ParserError =
Fluent::Compat::Parser::ParserError
Parser =
Fluent::Compat::Parser
TextParser =
Fluent::Compat::TextParser
DetachProcessMixin =
Fluent::Compat::DetachProcessMixin
DetachMultiProcessMixin =
Fluent::Compat::DetachMultiProcessMixin
VERSION =
'1.17.1'
Formatter =
Fluent::Compat::Formatter
TextFormatter =
Fluent::Compat::TextFormatter
OutputChain =
Fluent::Compat::OutputChain
CopyOutputChain =
Fluent::Compat::CopyOutputChain
NullOutputChain =
Fluent::Compat::NullOutputChain
ExecUtil =

obsolete

Fluent::Compat::ExecUtil
FileUtil =

obsolete

Fluent::Compat::FileUtil
SocketUtil =

obsolete

Fluent::Compat::SocketUtil
StringUtil =

obsolete

Fluent::Compat::StringUtil

Class Method Summary collapse

Class Method Details

.linux?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/fluent/env.rb', line 33

def self.linux?
  /linux/ === RUBY_PLATFORM
end

.macos?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/fluent/env.rb', line 37

def self.macos?
  /darwin/ =~ RUBY_PLATFORM
end

.windows?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/fluent/env.rb', line 29

def self.windows?
  ServerEngine.windows?
end