Giter Site home page Giter Site logo

how to use? about loki HOT 12 CLOSED

vtolstov avatar vtolstov commented on September 13, 2024
how to use?

from loki.

Comments (12)

gouthamve avatar gouthamve commented on September 13, 2024 4

Will do!

from loki.

philips avatar philips commented on September 13, 2024 2

If you are targeting Kubernetes why are the docs all using docker run instead of kubectl run? Do you want a PR?

from loki.

gouthamve avatar gouthamve commented on September 13, 2024 2

Haha, I'll be publishing the ksonnet for it today, we have something here that kinda works: https://github.com/grafana/loki/tree/master/ksonnet but not yet.

from loki.

philips avatar philips commented on September 13, 2024 2

@gouthamve any chance you can publish something that just works on minikube or other Kubernetes using kubectl port-forward after kubectl create?

from loki.

adamdecaf avatar adamdecaf commented on September 13, 2024 1

FYI, I adapted the Kubernetes manifests and am running loki/promtail without consul or cloud storage. It was much easier to get logcli working then. I could write up something if people wanted.

This setup allowed me to just use infra.moov.io/loki and run logcli query '{ job != "" }' type queries just fine. I've since hidden that behind auth.

I'd recommend using the ksonnet builders for a more drop-in install though.

from loki.

gouthamve avatar gouthamve commented on September 13, 2024

Hi @vtolstov We're initially targeting Kubernetes with our launch, see: https://github.com/grafana/loki#getting-started for instructions on getting started. Having said that we'll soon be publishing blog posts and other content around how to run Loki and Promtail on different platforms, so keep an eye out!

from loki.

vtolstov avatar vtolstov commented on September 13, 2024

from loki.

viktorsmari avatar viktorsmari commented on September 13, 2024

I really like the docker-compose support and everything started perfectly, but then what?
I clicked the Explore tab but of course I had no data.

If possible, it would be nice to explain (write in the tutorial) how to actually see some test log data so people can quickly evaluate this exciting product!

from loki.

daixiang0 avatar daixiang0 commented on September 13, 2024

see #117

from loki.

vtolstov avatar vtolstov commented on September 13, 2024

That is nice, but how to get logs without grafana and how to write it?
So my use case - write logs from 20 microservices to some store and have ability to get some logs via labels (for example service name or uuid)

from loki.

tomwilkie avatar tomwilkie commented on September 13, 2024

@philips we've merged in a helm chart now, and removed the docker run instructions. docker-compose is still there mind you. The helm chart instructions include all the necessary port-forward commands for a full E2E demo.

@viktorsmari:

If possible, it would be nice to explain (write in the tutorial) how to actually see some test log data so people can quickly evaluate this exciting product

@davkal and @gouthamve have put the source code for the demo app we used at KubeCon here: https://github.com/gouthamve/tns

@vtolstov

That is nice, but how to get logs without grafana and how to write it?

There is an example CLI and API docs:

from loki.

base698 avatar base698 commented on September 13, 2024

Can we get an example of:

  • Relabel Config. I only found that was a thing digging through the source. I have no experience with prometheus so it's not something I really understand. I'm trying to pull a value out of a logline and use that as a label. Source label doesn't make sense, but target label does.
    This is best I can come up with, but doesn't seem to work:
  relabel_configs:
    - source_labels: [logfield]
      regex: '.*level=([a-zA-Z]+).*'
      replacement: '${1}'
      target_label: 'level'
      action: replace
  • Working logcli query example. I'm unable to figure out how to read the logs that have been ingested beyond logcli labels

from loki.

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.