Giter VIP home page Giter VIP logo

rocketmq-beat-output's Introduction

Beat Output rocketmq

This is a output implementation of elastic beats for support Filebeat, Metricbeat, Functionbeat, Winlogbeat, Journalbeat, Auditbeat to Apache rocketmq

Compatibility

This output is developed and tested using Apache rocketmq-client-go 2.1.0 and Beats 7.9.1

Download rocketmq-beat-output

mkdir -p $GOPATH/src/github.com/kukuzidian/
cd $GOPATH/src/github.com/kukuzidian/
git clone https://github.com/kukuzidian/rocketmq-beat-output
cd rocketmq-beat-output

Build

Build Filebeat

Edit main.go file

package main

import (
    "os"
    _ "github.com/kukuzidian/rocketmq-beat-output/rocketmq"
    "github.com/elastic/beats/x-pack/filebeat/cmd"
)

func main() {
    if err := cmd.RootCmd.Execute(); err != nil {
        os.Exit(1)
    }
}
go build -o filebeat main.go

Usage

Add following configuration to filebeat.yml

output.rocketmq:
  namesrvaddr: "172.16.14.128:9876"
  topic: "beat_topic"
  groupName: "filebeatProducer"
  producename: "producename"
  tag: "A1"
  enabled: true
  codec.json:
    pretty: false
    escape_html: false

Start filebeat

./filebeat modules enable system
./filebeat modules list
./filebeat -c filebeat.yml -e

Build other beat

go build -o metricbeat metricbeat.go
go build -o filebeat filebeat.go
go build -o functionbeat functionbeat.go
go build -o journalbeat journalbeat.go
go build -o auditbeat auditbeat.go
go build -o winlogbeat winlogbeat.go
go build -o packetbeat packetbeat.go

Configurations

FAQ

rocketmq-beat-output's People

Contributors

kukuzidian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.