openshift-docs icon indicating copy to clipboard operation
openshift-docs copied to clipboard

OBSDOCS-118

Open smunje1 opened this issue 1 year ago • 11 comments

OBSDOCS-118: Configuring JSON log data for Elasticsearch is defined incorrectly Aligned team: Observability OCP version for cherry-picking: JIRA issues: OBSDOCS-118 Preview pages: https://75444--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/logging/log_collection_forwarding/cluster-logging-enabling-json-logging.html#cluster-logging-configuration-of-json-log-data-for-default-elasticsearch_cluster-logging-enabling-json-logging SME review completed: @jcantrill QE review completed: @anpingli Peer review requested:

smunje1 avatar May 02 '24 13:05 smunje1

🤖 Wed Jun 19 10:56:27 - Prow CI generated the docs preview:

https://75444--ocpdocs-pr.netlify.app/openshift-dedicated/latest/observability/logging/log_collection_forwarding/cluster-logging-enabling-json-logging.html https://75444--ocpdocs-pr.netlify.app/openshift-enterprise/latest/observability/logging/log_collection_forwarding/cluster-logging-enabling-json-logging.html https://75444--ocpdocs-pr.netlify.app/openshift-rosa/latest/observability/logging/log_collection_forwarding/cluster-logging-enabling-json-logging.html

ocpdocs-previewbot avatar May 02 '24 13:05 ocpdocs-previewbot

line 26 should be flat_labels. only Preserve k8s Common Labels can be show in kubernetes.labels. Refer to https://issues.redhat.com/browse/LOG-2388 "kubernetes": { "flat_labels": [ "logFormat=apache", .... ] }

anpingli avatar May 09 '24 14:05 anpingli

/lgtm

anpingli avatar Jun 19 '24 10:06 anpingli

/retest

smunje1 avatar Jun 19 '24 10:06 smunje1

New changes are detected. LGTM label has been removed.

openshift-ci[bot] avatar Jun 19 '24 10:06 openshift-ci[bot]

@smunje1: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

openshift-ci[bot] avatar Jun 19 '24 10:06 openshift-ci[bot]

/label peer-review-needed

smunje1 avatar Jun 19 '24 11:06 smunje1

/label peer-review-in-progress

xenolinux avatar Jun 19 '24 12:06 xenolinux

Hello @smunje1 ,

I feel this is not explaining well how to configure JSON.

It should be clear the difference between the configuration needed for LogForwarding as JSON to the internal LogStorage (default)

outputDefaults: 
  elasticsearch:
    structuredTypeKey: kubernetes.labels.managed 
    structuredTypeName: nologformat

And other outputs:

outputs:
  - name: elasticsearch-secure
    elasticsearch:
      structuredTypeKey: openshift.labels.unmanaged 
      structuredTypeName: nologformat

As it's now, it's not so much clear and it should be. This part is really what's trying to fix this documentation bug and it continues not doing from the point of view of an user.

At the same time, this command is wrong:

$ oc delete pod --selector logging-infra=collector

For deleting the collector pods, it should be as below, but really, any change in the ClusterLogForward should automatically restart the collector pods, then, the command shouldn't be needed and in case that not restarted, then, it should be reviewed in the ClusterLogForwarder status if any error is present in the logic that leads to don't be restarted automatically:

$ oc -n openshift-logging delete pod -l component=collector

And the last part, I don't understand the reason for having separated the sections below as "Configuring" and "Forwarding" have the same meaning here. If you configure it, you are log forwarding it, then, what's the sense of having two different sections where even the second "Forwarding..." has not an entire ClusterLogforwarding example and it's only present in the first section "Configuring JSON..."?

r2d2rnd avatar Jun 25 '24 16:06 r2d2rnd

@r2d2rnd We would like to deal with your feedback in a separate jira and merge this one, since it has already passed SME and QE review. Does that suit you?

briandooley avatar Jul 04 '24 10:07 briandooley

Hello @briandooley ,

My comment has 3 parts. The fist part is directly related to the documentation bug OBSDOCS-118 and this is the reason of this ticket.

Until now, the documentation doesn't explain when use "output", it was only explained outputDefaults, then, if we introduce now the "output" definition for JSON in the examples, but not indicated clearly when use outputDefaults and when use output, then, this will add more confusion.

Then, I'd prefer this part to be fixed here as it's directly related to this topic. For the other things commented, I'd open a separated ticket.

r2d2rnd avatar Jul 05 '24 06:07 r2d2rnd

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Oct 03 '24 09:10 openshift-bot

/remove-lifecycle stale

smunje1 avatar Oct 03 '24 10:10 smunje1

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Jan 02 '25 01:01 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Feb 01 '25 08:02 openshift-bot

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-bot avatar Mar 04 '25 00:03 openshift-bot

@openshift-bot: Closed this PR.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

openshift-ci[bot] avatar Mar 04 '25 00:03 openshift-ci[bot]