Code Monkey home page Code Monkey logo

Comments (4)

kaiserboss avatar kaiserboss commented on July 18, 2024

Is it possible to make a search in all logs instead of specifying a stream?

from bonfire.

mahrz24 avatar mahrz24 commented on July 18, 2024

The graylog API takes the stream ID as a parameter, so all searches are always in a single stream. Querying multiple streams and merging the results seems to much logic on the client side. So one solution I see is to create an 'All Messages' stream and search in there.

from bonfire.

kaiserboss avatar kaiserboss commented on July 18, 2024

Ok.

I was thinking about another solution specifying stream only in research field:

bonfire -h host -u user -p pass -@ "7 days ago" "streams:(stream1_ref OR stream2_ref) AND ip

==> In that case how can I bypass the stream selection field?

Regards.

from bonfire.

valentin-krasontovitsch avatar valentin-krasontovitsch commented on July 18, 2024

I think what @mahrz24 was trying to say is that bonfire, as a client, can only communicate with graylog via the API - and the API always gets a stream ID with any query request you make.

Without investigating this myself in detail, it seems like while you can run the query you describe in the graylog web ui, it is impossible to achieve the same through an API call, at least at the moment (without investing an extensive amount of work into the client to fix the logic and do several requests, which sounds at least hairy).

Closing as will-not-fix

from bonfire.

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.