lichaozhao / copilot-usage

4 stars 4 forks source link

关于用户唯一标识 #1

Open dlwayy5211 opened 5 months ago

dlwayy5211 commented 5 months ago

你好,我们想通过Elasticsearch获取的日志信息找到用户的唯一标识,请问怎样能够通过日志的信息(JSON)获取到用户的唯一标识,比如用户ID或者用户姓名,哪个字段能够判断出来?

dlwayy5211 commented 5 months ago

以下是获取到的json片段,我们没有找到通过哪个字段可以判断用户的标识。 "_source" : { "timestamp" : "2024-06-28T15:15:15.013260", "host" : "copilot-proxy.githubusercontent.com", "path" : "/v1/engines/copilot-codex/completions", "method" : "POST", "request_url" : "https://copilot-proxy.githubusercontent.com/v1/engines/copilot-codex/completions", "status_code" : 200, "request_headers" : { "authorization" : "Bearer XXX", "content-type" : "application/json", "editor-plugin-version" : "copilot-intellij/1.5.8.5775", "editor-version" : "JetBrains-IU/231.9423.9", "openai-intent" : "copilot-ghost", "openai-organization" : "github-copilot", "user-agent" : "GithubCopilot/1.201.0", "vscode-machineid" : "05ffc4a5e8c006db108321768b6d4411dd34003e2a03b08d8d3f77ea8bf5a4ec", "vscode-sessionid" : "ebb1ef99-555c-406d-b8a8-9da1c7c79ad81719556686573", "x-request-id" : "ea2e57f7-c7dc-4f90-b5ce-b1011c0bf3be", "content-length" : "2658" }, "response_headers" : { "azureml-model-deployment" : "z6953999e1f31", "content-security-policy" : "default-src 'none'; sandbox", "content-type" : "text/event-stream", "openai-processing-ms" : "71.4415", "strict-transport-security" : "max-age=31536000", "x-request-id" : "ea2e57f7-c7dc-4f90-b5ce-b1011c0bf3be", "content-length" : "803", "date" : "Fri, 28 Jun 2024 07:15:14 GMT", "x-github-backend" : "Kubernetes", "x-github-request-id" : "0ED8:1A2C87:23AA2CC:25202F5:667E6301" },