Skip to content

Push Github Action logs to LoQL APIs (qryn, loki)

License

Notifications You must be signed in to change notification settings

Dletta/loki-action

 
 

Repository files navigation

LogQL Push Action

Collect and ship logs from a Github Actions workflow to a LogQL Push API (qryn, loki)

Usage

some-job:
  runs-on: ubuntu-latest
  steps:
    - name: checkout
      uses: actions/checkout@v2
    - name: build
      run: this-will-fail
    - name: qryn-logs
      if: failure()
      uses: metrico/loki-action@V3
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        endpoint: ${{ secrets.LOGQL_ENDPOINT }}
        username: ${{ secrets.LOGQL_USER }}
        password: ${{ secrets.LOGQL_PASS }}
        job-names: build

Development

Install the dependencies

$ npm install

Lint and package it for distribution

$ npm run all

Acknowledgements

Loosely based on elastic-logs by masci

About

Push Github Action logs to LoQL APIs (qryn, loki)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%