<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # Kubernetes Logs > 原文:[https://docs.gitlab.com/ee/user/project/clusters/kubernetes_pod_logs.html](https://docs.gitlab.com/ee/user/project/clusters/kubernetes_pod_logs.html) * [Overview](#overview) * [Requirements](#requirements) * [Usage](#usage) * [From the project sidebar](#from-the-project-sidebar) * [From Deploy Boards](#from-deploy-boards) * [Logs view](#logs-view) * [Filter by date](#filter-by-date) * [Full text search](#full-text-search) # Kubernetes Logs[](#kubernetes-logs "Permalink") 版本歷史 * 在[GitLab Ultimate](https://about.gitlab.com/pricing/) 11.0 中[引入](https://gitlab.com/gitlab-org/gitlab/-/issues/4752) . * [移至](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26383) [GitLab Core](https://about.gitlab.com/pricing/) 12.9\. 使用 GitLab 可以輕松查看[連接的 Kubernetes 集群](index.html)中正在運行的 Pod 的日志. 通過直接在**Log Explorer 的** GitLab 中顯示**日志** ,開發人員可以避免管理控制臺工具或跳轉到其他界面. **注意:** [了解有關 Kubernetes + GitLab 的更多信息](https://about.gitlab.com/solutions/kubernetes/) . 大規模構建,測試,部署和運行應用程序所需的一切. ## Overview[](#overview "Permalink") [Kubernetes](https://kubernetes.io)日志可以使用**Log Explorer**在 GitLab 中直接查看. [![Pod logs](https://img.kancloud.cn/f6/53/f653b14917ecf9090b2ba24a739a6ec5_1846x1002.png)](img/kubernetes_pod_logs_v12_10.png) 要了解更多信息,請參閱[APM-Log Explorer](https://www.youtube.com/watch?v=hWclZHA7Dgw) . ## Requirements[](#requirements "Permalink") 要使用日志,需要[部署到 Kubernetes 環境](../deploy_boards.html#enabling-deploy-boards) . ## Usage[](#usage "Permalink") 要訪問日志,您必須具有正確的[權限](../../permissions.html#project-members-permissions) . 您可以通過兩種方式訪問??它們. ### From the project sidebar[](#from-the-project-sidebar "Permalink") 在 GitLab 12.5 中[引入](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/22011) . 去 側欄菜單上的" **操作">"艙位日志** "以顯示" **日志資源管理器"** . [![Sidebar menu](https://img.kancloud.cn/49/80/4980355dd502ae901e97175a2d20da96_300x477.png)](img/sidebar_menu_pod_logs_v12_10.png) ### From Deploy Boards[](#from-deploy-boards "Permalink") 可以通過單擊[Deploy Boards 中](../deploy_boards.html)的特定窗格來顯示日志: 1. 去 **操作>環境,**然后找到包含所需 pod 的環境,例如`production` . 2. 在" **環境"**頁面上,您應該通過[Deploy Boards](../deploy_boards.html)看到環境容器的狀態. 3. 將鼠標懸停在窗格列表上時,將顯示一個工具提示,其中包含確切的窗格名稱和狀態. [![部署板窗格列表](https://img.kancloud.cn/63/af/63af532cfde39e4641e949f07d79265d_760x374.png)](img/pod_logs_deploy_board.png) 4. 單擊所需的窗格以顯示**Log Explorer** . ### Logs view[](#logs-view "Permalink") **日志瀏覽**器使您可以通過以下方式過濾日志: * Pods. * [從 GitLab 12.4 開始](https://gitlab.com/gitlab-org/gitlab/-/issues/5769) ,環境. * [From GitLab 12.7](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/21656), [full text search](#full-text-search). * [從 GitLab 12.8 開始](https://gitlab.com/gitlab-org/gitlab/-/issues/197879) ,日期. 從[GitLab 12.9](https://gitlab.com/gitlab-org/gitlab/-/issues/198050)起可以加載 500 條以上的日志行. [在將來的版本中將](https://gitlab.com/gitlab-org/gitlab/-/issues/13404)支持具有多個容器的 Pod. [在將來的版本中將](https://gitlab.com/gitlab-org/gitlab/-/issues/196191)支持歷史數據. ### Filter by date[](#filter-by-date "Permalink") 在 GitLab 12.8 中[引入](https://gitlab.com/gitlab-org/gitlab/-/issues/197879) . 在集群上啟用[Elastic Stack](../../clusters/applications.html#elastic-stack)時,您可以按日期過濾" **日志瀏覽**器"中顯示的**日志** . 單擊" **日志資源管理器"**中的" **顯示最后一個** "以查看可用選項. ### Full text search[](#full-text-search "Permalink") 在 GitLab 12.7 中[引入](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/21656) . 在集群上啟用[Elastic Stack](../../clusters/applications.html#elastic-stack)時,可以通過搜索欄搜索日志的內容. 搜索通過使用[simple_query_string](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html) Elasticsearch 函數傳遞給 Elasticsearch,該函數支持以下運算符: | Operator | Description | | --- | --- | | `\&#124;` | 或運算. | | `-` | 取反單個令牌. | | `+` | AND 運算. | | `"` | 包裝許多標記以表示要搜索的短語. | | `*` (每學期末) | 前綴查詢. | | `(` and `)` | Precedence. | | `~N` (一個字之后) | 編輯距離(模糊性). | | `~N` (在短語之后) | 斜率. |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看