Skip to content

Unable to use context feature of Logs panel when used with grafana-clickhouse-datasource plugin #1362

@sukhada369

Description

@sukhada369

What happened:
This is for "Logs Panel" and Explorer window. I am able to see logs getting populated when grafana-clickhouse datasource is added. On the right side end of every logline there is a button to look at the context of the log. Over there I always see "Error loading more logs.". I have verified the configuration of the datasource and ensured to add correct info in "Context columns" section. I have tried adding other fields as well.

Image

What you expected to happen:
I should be able to see surrounding logs or should be able to see some errors in Grafana logs on why it is not working

How to reproduce it (as minimally and precisely as possible):

  • Create a table in clickhouse with minimal fields as time, message, logLevel, applicationName
  • Connect this as a datasource on Grafana
  • Ensure to configure "Context Column" section
  • Go to explorer tab and execute a query which will get all these fields from the table
  • Once logs are visible, click on the "context" button on the rightmost end of the logline

Anything else we need to know?:

  • This is for an air gapped environment

Environment:

  • Grafana version: 12.1.1
  • Plugin version: 4.10.2
  • OS Grafana is installed on: OEL8
  • User OS & Browser: MAC, Google Chrome
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Feature Requests

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions