Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ylighgh committed Jun 12, 2024
1 parent bbaba9a commit e9c1c06
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 65 deletions.
4 changes: 2 additions & 2 deletions hexo/2024/05/29/Kubernetes-Service/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ <h3 id="安装-1"><a href="#安装-1" class="headerlink" title="安装"></a>安
<article class="post-prev col-6">


<a href="/hexo/2024/06/11/ELK-FluentBit/" title="FluentBit安装">
<a href="/hexo/2024/06/11/ELK-Filebeat/" title="Filebeat安装">
<i class="iconfont icon-arrowleft"></i>
<span class="hidden-mobile">FluentBit安装</span>
<span class="hidden-mobile">Filebeat安装</span>
<span class="visible-mobile">上一篇</span>
</a>

Expand Down
10 changes: 8 additions & 2 deletions hexo/2024/06/11/ELK-Filebeat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,18 @@ <h1 id="配置"><a href="#配置" class="headerlink" title="配置"></a>配置</
<article class="post-prev col-6">


<a href="/hexo/2024/06/11/ELK-FluentBit/" title="FluentBit安装">
<i class="iconfont icon-arrowleft"></i>
<span class="hidden-mobile">FluentBit安装</span>
<span class="visible-mobile">上一篇</span>
</a>

</article>
<article class="post-next col-6">


<a href="/hexo/2024/06/11/ELK-FluentBit/" title="FluentBit安装">
<span class="hidden-mobile">FluentBit安装</span>
<a href="/hexo/2024/05/29/Kubernetes-Service/" title="Kubernetes-Service/Ingress">
<span class="hidden-mobile">Kubernetes-Service/Ingress</span>
<span class="visible-mobile">下一篇</span>
<i class="iconfont icon-arrowright"></i>
</a>
Expand Down
40 changes: 17 additions & 23 deletions hexo/2024/06/11/ELK-FluentBit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<meta property="og:description" content="安装官方文档 curl https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;fluent&#x2F;fluent-bit&#x2F;master&#x2F;install.sh | sh 备份默认文件cp &#x2F;etc&#x2F;fluent-bit&#x2F;fluent-bit.conf &#x2F;etc&#x2F;fluent-bit&#x2F;fluent-bit.conf.default cp &#x2F;etc&#x2F;fluent-bit&#x2F;parsers.conf">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2024-06-11T06:12:17.000Z">
<meta property="article:modified_time" content="2024-06-12T03:52:26.164Z">
<meta property="article:modified_time" content="2024-06-12T03:56:24.684Z">
<meta property="article:author" content="三石">
<meta property="article:tag" content="ELK">
<meta name="twitter:card" content="summary_large_image">
Expand Down Expand Up @@ -290,9 +290,9 @@ <h1 id="修改配置"><a href="#修改配置" class="headerlink" title="修改
<span class="hljs-string">@INCLUDE secure-input.conf</span>
<span class="hljs-string">@INCLUDE secure-filter.conf</span>
<span class="hljs-string">@INCLUDE secure-output.conf</span>
<span class="hljs-string">@INCLUDE message-input.conf</span>
<span class="hljs-string">@INCLUDE message-filter.conf</span>
<span class="hljs-string">@INCLUDE message-output.conf</span>
<span class="hljs-string">@INCLUDE messages-input.conf</span>
<span class="hljs-string">@INCLUDE messages-filter.conf</span>
<span class="hljs-string">@INCLUDE messages-output.conf</span>
<span class="hljs-string">EOF</span></code></pre></div>

<h2 id="采集secure日志配置"><a href="#采集secure日志配置" class="headerlink" title="采集secure日志配置"></a>采集secure日志配置</h2><div class="code-wrapper"><pre><code class="hljs bash"><span class="hljs-built_in">cat</span> &lt;&lt;<span class="hljs-string">EOF&gt;&gt; /etc/fluent-bit/parsers.conf</span>
Expand Down Expand Up @@ -351,41 +351,41 @@ <h2 id="采集secure日志配置"><a href="#采集secure日志配置" class="hea
<span class="hljs-string"> rdkafka.request.required.acks 1</span>
<span class="hljs-string">EOF</span></code></pre></div>

<h2 id="采集message-kernel日志"><a href="#采集message-kernel日志" class="headerlink" title="采集message kernel日志"></a>采集message kernel日志</h2><div class="code-wrapper"><pre><code class="hljs bash"><span class="hljs-built_in">cat</span> &lt;&lt;<span class="hljs-string">EOF&gt;/etc/fluent-bit/message-input.conf</span>
<h2 id="采集message-kernel日志"><a href="#采集message-kernel日志" class="headerlink" title="采集message kernel日志"></a>采集message kernel日志</h2><div class="code-wrapper"><pre><code class="hljs bash"><span class="hljs-built_in">cat</span> &lt;&lt;<span class="hljs-string">EOF&gt;/etc/fluent-bit/messages-input.conf</span>
<span class="hljs-string">[INPUT]</span>
<span class="hljs-string"> Name tail</span>
<span class="hljs-string"> Path /var/log/message</span>
<span class="hljs-string"> Tag kube-message.*</span>
<span class="hljs-string"> DB /var/log/flb_kube_message.db</span>
<span class="hljs-string"> Path /var/log/messages</span>
<span class="hljs-string"> Tag kube-messages.*</span>
<span class="hljs-string"> DB /var/log/flb_kube_messages.db</span>
<span class="hljs-string"> Mem_Buf_Limit 1MB</span>
<span class="hljs-string"> Skip_Long_Lines On</span>
<span class="hljs-string"> Refresh_Interval 10</span>
<span class="hljs-string">EOF</span>

<span class="hljs-built_in">cat</span> &lt;&lt;<span class="hljs-string">EOF&gt; /etc/fluent-bit/message-filter.conf</span>
<span class="hljs-built_in">cat</span> &lt;&lt;<span class="hljs-string">EOF&gt; /etc/fluent-bit/messages-filter.conf</span>
<span class="hljs-string">[FILTER]</span>
<span class="hljs-string"> Name grep</span>
<span class="hljs-string"> Match kube-message.*</span>
<span class="hljs-string"> Match kube-messages.*</span>
<span class="hljs-string"> Regex log /.*kernel.*/</span>
<span class="hljs-string"></span>
<span class="hljs-string">[FILTER]</span>
<span class="hljs-string"> Name parser</span>
<span class="hljs-string"> Match kube-message.*</span>
<span class="hljs-string"> Match kube-messages.*</span>
<span class="hljs-string"> Key_Name log</span>
<span class="hljs-string"> Parser axzo-os-log</span>
<span class="hljs-string"></span>
<span class="hljs-string">[FILTER]</span>
<span class="hljs-string"> Name modify</span>
<span class="hljs-string"> Match kube-message.*</span>
<span class="hljs-string"> Match kube-messages.*</span>
<span class="hljs-string"> Add IP $IP</span>
<span class="hljs-string">EOF</span>

<span class="hljs-built_in">cat</span> &lt;&lt;<span class="hljs-string">EOF&gt;/etc/fluent-bit/message-output.conf</span>
<span class="hljs-built_in">cat</span> &lt;&lt;<span class="hljs-string">EOF&gt;/etc/fluent-bit/messages-output.conf</span>
<span class="hljs-string">[OUTPUT]</span>
<span class="hljs-string"> Name kafka</span>
<span class="hljs-string"> Match kube-message.*</span>
<span class="hljs-string"> Match kube-messages.*</span>
<span class="hljs-string"> Brokers 192.168.1.9:9092,192.168.1.9:9091,192.168.1.9:9093</span>
<span class="hljs-string"> Topics os-message-logs</span>
<span class="hljs-string"> Topics os-messages-logs</span>
<span class="hljs-string"> Timestamp_Key @timestamp</span>
<span class="hljs-string"> Timestamp_Format iso8601</span>
<span class="hljs-string"> Retry_Limit false</span>
Expand Down Expand Up @@ -446,18 +446,12 @@ <h1 id="启动"><a href="#启动" class="headerlink" title="启动"></a>启动</
<article class="post-prev col-6">


<a href="/hexo/2024/06/11/ELK-Filebeat/" title="Filebeat安装">
<i class="iconfont icon-arrowleft"></i>
<span class="hidden-mobile">Filebeat安装</span>
<span class="visible-mobile">上一篇</span>
</a>

</article>
<article class="post-next col-6">


<a href="/hexo/2024/05/29/Kubernetes-Service/" title="Kubernetes-Service/Ingress">
<span class="hidden-mobile">Kubernetes-Service/Ingress</span>
<a href="/hexo/2024/06/11/ELK-Filebeat/" title="Filebeat安装">
<span class="hidden-mobile">Filebeat安装</span>
<span class="visible-mobile">下一篇</span>
<i class="iconfont icon-arrowright"></i>
</a>
Expand Down
8 changes: 4 additions & 4 deletions hexo/archives/2024/06/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@

<p class="h5">2024</p>

<a href="/hexo/2024/06/11/ELK-Filebeat/" class="list-group-item list-group-item-action">
<a href="/hexo/2024/06/11/ELK-FluentBit/" class="list-group-item list-group-item-action">
<time>06-11</time>
<div class="list-group-item-title">Filebeat安装</div>
<div class="list-group-item-title">FluentBit安装</div>
</a>


<a href="/hexo/2024/06/11/ELK-FluentBit/" class="list-group-item list-group-item-action">
<a href="/hexo/2024/06/11/ELK-Filebeat/" class="list-group-item list-group-item-action">
<time>06-11</time>
<div class="list-group-item-title">FluentBit安装</div>
<div class="list-group-item-title">Filebeat安装</div>
</a>

</div>
Expand Down
8 changes: 4 additions & 4 deletions hexo/archives/2024/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@

<p class="h5">2024</p>

<a href="/hexo/2024/06/11/ELK-Filebeat/" class="list-group-item list-group-item-action">
<a href="/hexo/2024/06/11/ELK-FluentBit/" class="list-group-item list-group-item-action">
<time>06-11</time>
<div class="list-group-item-title">Filebeat安装</div>
<div class="list-group-item-title">FluentBit安装</div>
</a>


<a href="/hexo/2024/06/11/ELK-FluentBit/" class="list-group-item list-group-item-action">
<a href="/hexo/2024/06/11/ELK-Filebeat/" class="list-group-item list-group-item-action">
<time>06-11</time>
<div class="list-group-item-title">FluentBit安装</div>
<div class="list-group-item-title">Filebeat安装</div>
</a>


Expand Down
8 changes: 4 additions & 4 deletions hexo/archives/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@

<p class="h5">2024</p>

<a href="/hexo/2024/06/11/ELK-Filebeat/" class="list-group-item list-group-item-action">
<a href="/hexo/2024/06/11/ELK-FluentBit/" class="list-group-item list-group-item-action">
<time>06-11</time>
<div class="list-group-item-title">Filebeat安装</div>
<div class="list-group-item-title">FluentBit安装</div>
</a>


<a href="/hexo/2024/06/11/ELK-FluentBit/" class="list-group-item list-group-item-action">
<a href="/hexo/2024/06/11/ELK-Filebeat/" class="list-group-item list-group-item-action">
<time>06-11</time>
<div class="list-group-item-title">FluentBit安装</div>
<div class="list-group-item-title">Filebeat安装</div>
</a>


Expand Down
8 changes: 4 additions & 4 deletions hexo/categories/ELK/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@

<p class="h5">2024</p>

<a href="/hexo/2024/06/11/ELK-Filebeat/" class="list-group-item list-group-item-action">
<a href="/hexo/2024/06/11/ELK-FluentBit/" class="list-group-item list-group-item-action">
<time>06-11</time>
<div class="list-group-item-title">Filebeat安装</div>
<div class="list-group-item-title">FluentBit安装</div>
</a>


<a href="/hexo/2024/06/11/ELK-FluentBit/" class="list-group-item list-group-item-action">
<a href="/hexo/2024/06/11/ELK-Filebeat/" class="list-group-item list-group-item-action">
<time>06-11</time>
<div class="list-group-item-title">FluentBit安装</div>
<div class="list-group-item-title">Filebeat安装</div>
</a>

</div>
Expand Down
8 changes: 4 additions & 4 deletions hexo/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -327,19 +327,19 @@



<a href="/hexo/2024/06/11/ELK-Filebeat/" title="Filebeat安装"
<a href="/hexo/2024/06/11/ELK-FluentBit/" title="FluentBit安装"
class="list-group-item list-group-item-action
">
<span class="category-post">Filebeat安装</span>
<span class="category-post">FluentBit安装</span>
</a>




<a href="/hexo/2024/06/11/ELK-FluentBit/" title="FluentBit安装"
<a href="/hexo/2024/06/11/ELK-Filebeat/" title="Filebeat安装"
class="list-group-item list-group-item-action
">
<span class="category-post">FluentBit安装</span>
<span class="category-post">Filebeat安装</span>
</a>


Expand Down
12 changes: 6 additions & 6 deletions hexo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">

<a href="/hexo/2024/06/11/ELK-Filebeat/" target="_self">
Filebeat安装
<a href="/hexo/2024/06/11/ELK-FluentBit/" target="_self">
FluentBit安装
</a>
</h2>


<a class="index-excerpt index-excerpt__noimg" href="/hexo/2024/06/11/ELK-Filebeat/" target="_self">
<a class="index-excerpt index-excerpt__noimg" href="/hexo/2024/06/11/ELK-FluentBit/" target="_self">
<div>

</div>
Expand Down Expand Up @@ -285,13 +285,13 @@ <h2 class="index-header">
<article class="col-12 col-md-12 mx-auto index-info">
<h2 class="index-header">

<a href="/hexo/2024/06/11/ELK-FluentBit/" target="_self">
FluentBit安装
<a href="/hexo/2024/06/11/ELK-Filebeat/" target="_self">
Filebeat安装
</a>
</h2>


<a class="index-excerpt index-excerpt__noimg" href="/hexo/2024/06/11/ELK-FluentBit/" target="_self">
<a class="index-excerpt index-excerpt__noimg" href="/hexo/2024/06/11/ELK-Filebeat/" target="_self">
<div>

</div>
Expand Down
Loading

0 comments on commit e9c1c06

Please sign in to comment.