fluentd-standalone

Standalone fluentd server for Java and Scala

License

License

GroupId

GroupId

org.xerial
ArtifactId

ArtifactId

fluentd-standalone_2.12
Last Version

Last Version

1.6.2
Release Date

Release Date

Type

Type

jar
Description

Description

fluentd-standalone
Standalone fluentd server for Java and Scala
Project URL

Project URL

https://github.com/xerial/fluentd-standalone
Project Organization

Project Organization

xerial.org
Source Code Management

Source Code Management

https://github.com/xerial/fluentd-standalone

Download fluentd-standalone_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/org.xerial/fluentd-standalone_2.12/ -->
<dependency>
    <groupId>org.xerial</groupId>
    <artifactId>fluentd-standalone_2.12</artifactId>
    <version>1.6.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.xerial/fluentd-standalone_2.12/
implementation 'org.xerial:fluentd-standalone_2.12:1.6.2'
// https://jarcasting.com/artifacts/org.xerial/fluentd-standalone_2.12/
implementation ("org.xerial:fluentd-standalone_2.12:1.6.2")
'org.xerial:fluentd-standalone_2.12:jar:1.6.2'
<dependency org="org.xerial" name="fluentd-standalone_2.12" rev="1.6.2">
  <artifact name="fluentd-standalone_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.xerial', module='fluentd-standalone_2.12', version='1.6.2')
)
libraryDependencies += "org.xerial" % "fluentd-standalone_2.12" % "1.6.2"
[org.xerial/fluentd-standalone_2.12 "1.6.2"]

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.8
org.wvlet.airframe : airframe-log_2.12 jar 19.7.5
org.wvlet.airframe : airframe-control_2.12 jar 19.7.5

test (2)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.26
org.scalatest : scalatest_2.12 jar 3.0.8

Project Modules

There are no modules declared in this project.

fluentd-standalone Build Status Maven Central Scaladoc

Standalone fluentd (http://fluentd.org) server for Java and Scala.

This library launches a new fluentd server using a random port when fluentd is not started in the node.

Use cases:

  • Running test codes that use fluentd (logger) in a build server (e.g., Travis CI, Jenkins, etc.), in which fluentd is not running.

Usage (Java/Scala)

fluentd depends on some ruby modules. You need to install these dependencies first.

The simplest way is just install fluentd.

$ gem install fluentd -v 1.6.2

See also http://docs.fluentd.org/articles/quickstart.

Maven

<dependencies>
  ...
  <dependency>
    <groupId>org.xerial</groupId>
    <artifactId>fluentd-standalone_2.12</artifactId>
    <version>1.2.6</version>
  </dependency>
  ...
</dependencies>

sbt

libraryDependencies += "org.xerial" %% "fluentd-standalone" % "1.6.2"

Sample code

import xerial.fluentd.FluentdStandalone;

FluentdStandalone s = new FluentdStandalone();
// Start new fluentd server
s.start();

// Send log messsages to fluentd
int port = s.port(); // fluentd port

// Terminate the fluentd
s.stop();

For developers

$ git clone https://github.com/xerial/fluentd-standalone.git
$ cd fluentd-standalone
$ git submodule init          # Only for the first time
$ git submodule update        # Fetch fluentd 

# Run tests
$ ./sbt test 

Versions

Version
1.6.2
1.2.6.3
1.2.6.1
1.2.6
0.14.21
0.14.11