Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs missing "service" tag #104

Open
electricmonk opened this issue Nov 21, 2019 · 1 comment
Open

Logs missing "service" tag #104

electricmonk opened this issue Nov 21, 2019 · 1 comment
Assignees

Comments

@electricmonk
Copy link

Log messages reported by Boyar are missing the Service tag (service=boyar), and as a result we can't easily filter out Boyar-related logs in logz.io

{
  "_index": "logzioCustomerIndex191121_v7",
  "_type": "doc",
  "_id": "AW6MkAFCq1R_4Y9gv_1M.account-65212",
  "_version": 1,
  "_score": null,
  "_source": {
    "commit": "89192391aaefbe34d6833233e6c684b91cb18b0a",
    "source": "boyar/report_status.go:41",
    "type": "prod",
    "createdAt": "2019-11-20T11:11:41Z",
    "function": "boyar.ReportStatus",
    "state": "started",
    "app": "boyar",
    "workerId": "go83fvun34ezwsnqgf9kprdgs",
    "level": "info",
    "message": "service status",
    "version": "v0.20.0",
    "tags": [
      "_logz_http_bulk_json_8070"
    ],
    "node": "d5F2f401742568bcb6Fc0fd54C2B2eb1B75f8556",
    "@timestamp": "2019-11-21T06:04:37.864911039Z",
    "_logzio_pattern": 3447044,
    "name": "orbs-network-chain-1000001-stack",
    "vcid": 1000001
  },
  "fields": {
    "@timestamp": [
      1574316277864
    ]
  },
  "highlight": {
    "message": [
      "@kibana-highlighted-field@service@/kibana-highlighted-field@ @kibana-highlighted-field@status@/kibana-highlighted-field@"
    ]
  },
  "sort": [
    1574316277864
  ]
}
@amir-arad
Copy link

amir-arad commented Nov 21, 2019

use log.Service("boyar") instead of that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants