Giter Site home page Giter Site logo

file output module about gogstash HOT 5 OPEN

tsaikd avatar tsaikd commented on August 13, 2024
file output module

from gogstash.

Comments (5)

tengattack avatar tengattack commented on August 13, 2024

There is no file output currently, you can view output/stdout and implement the file output base on it.

from gogstash.

horacimacias avatar horacimacias commented on August 13, 2024

thanks, I'll give it a try.
I'm having trouble getting a clean checkout to build. Is there any particular commit I should be using?

If I checkout master, do a dep ensure and try go build main.go I get the following errors:

gogstash/vendor/github.com/tsaikd/gogstash/config/goglog
vendor/github.com/tsaikd/gogstash/config/goglog/goglog.go:20:2: unknown field 'RuntimeCallerFilters' in struct literal of type logrusutil.ConsoleLogFormatter
gogstash/vendor/github.com/docker/docker/opts
vendor/github.com/docker/docker/opts/address_pools.go:15:12: undefined: ipamutils.NetworkToSplit

If try to build the 0.1.16 source using godep restore I get the following error instead:

go/src/github.com/go-fsnotify/fsnotify; git checkout 629574ca2a5df945712d3079857300b5e4da0236
fatal: reference is not a tree: 629574ca2a5df945712d3079857300b5e4da0236
godep: error downloading dep (github.com/go-fsnotify/fsnotify): exit status 128
godep: Error downloading some deps. Aborting restore and check.

any suggestions?

from gogstash.

tengattack avatar tengattack commented on August 13, 2024

from gogstash.

KVInventoR avatar KVInventoR commented on August 13, 2024

I tried to use file module:

output:
  - type: stdout

  - type: file
    path: /logging/ip_test.log

but for me it just printed:
tail -f /logging/ip_test.log

%{log}
%{log}
%{log}
%{log}

looks like file output module doesn't work

from gogstash.

helgeolav avatar helgeolav commented on August 13, 2024

Have a look at the documentation for the output module. You need to specify the output format to tell what fields you want written to a file and the format for it.

from gogstash.

Related Issues (20)

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.