# How to minikube's system logs share in opensearch via fluentbit?

**URL:** <https://forum.opensearch.org/t/how-to-minikubes-system-logs-share-in-opensearch-via-fluentbit/20029>\
**Category:** Kubernetes\
**Created:** [June 27, 2024, 10:34am UTC](https://forum.opensearch.org/t/how-to-minikubes-system-logs-share-in-opensearch-via-fluentbit/20029 "2024-06-27T10:34:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ommkw](https://avatars.discourse-cdn.com/v4/letter/o/d26b3c/32.png) [@Ommkw](https://forum.opensearch.org/u/Ommkw)\
**Post date:** [June 27, 2024, 10:34am UTC](https://forum.opensearch.org/t/how-to-minikubes-system-logs-share-in-opensearch-via-fluentbit/20029/1 "2024-06-27T10:34:48Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
Opensearch version: 2.14  
Opensearch Dashboard version: 2.14  
Server OS: Ubuntu  
Browser: Firefox Web Browser

**Describe the issue** :

so i have a three helm charts opensearch, opensearch dashboard and fluentbit

so when i try to minikube logs pass in the opensearch via fluentbit,  
there are give me an error in the fluentbit logs and my fluentbit version is 3.0.7 .

The error is :

[2024/06/27 05:32:52] [error] [upstream] connection #68 to tcp://10.244.0.83:9600 timed out after 10 seconds (connection timeout)  
[2024/06/27 05:32:52] [error] [upstream] connection #72 to tcp://10.244.0.83:9600 timed out after 10 seconds (connection timeout)  
[2024/06/27 05:32:52] [warn] [engine] failed to flush chunk ‘1-1719466229.993033463.flb’, retry in 87 seconds: task\_id=601, input=cpu.0 \> output=opensearch.0 (out\_id=0)  
[2024/06/27 05:32:52] [warn] [engine] failed to flush chunk ‘1-1719466254.994056245.flb’, retry in 49 seconds: task\_id=626, input=cpu.0 \> output=opensearch.0 (out\_id=0)

when i install fluentbit via helm i pass also this config code  
The code is:

config:  
inputs: |  
[INPUT]  
Name cpu  
Tag cpu

outputs: |  
[OUTPUT]  
Name opensearch  
Match \*  
Host opensearch-cluster-master-headless.default.svc.cluster.local  
Port 9600  
HTTP\_User admin  
HTTP\_Passwd TadhakDev01  
Suppress\_Type\_Name On  
Trace\_Error On  
Trace\_Output On  
Logstash\_Format On  
Replace\_Dots On  
Retry\_Limit 100  
Index minikubelogs

And I edit this below code in my opensearch’s value.yaml file

ssl:  
http: false

allow\_unsafe\_democertificates: true

**Configuration** :

So I want all logs are get from the minikube system and pass in the opensearch via fluentbit.

**Relevant Logs or Screenshots** :

This is the fluentbit logs:

[2024/06/27 05:32:52] [error] [upstream] connection #68 to tcp://10.244.0.83:9600 timed out after 10 seconds (connection timeout)  
[2024/06/27 05:32:52] [error] [upstream] connection #72 to tcp://10.244.0.83:9600 timed out after 10 seconds (connection timeout)  
[2024/06/27 05:32:52] [warn] [engine] failed to flush chunk ‘1-1719466229.993033463.flb’, retry in 87 seconds: task\_id=601, input=cpu.0 \> output=opensearch.0 (out\_id=0)  
[2024/06/27 05:32:52] [warn] [engine] failed to flush chunk ‘1-1719466254.994056245.flb’, retry in 49 seconds: task\_id=626, input=cpu.0 \> output=opensearch.0 (out\_id=0)

---

<div class="post-metadata">

**Author:** ![gaobinlong](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gaobinlong/32/5242_2.png) [@gaobinlong](https://forum.opensearch.org/u/gaobinlong)\
**Post date:** [June 28, 2024, 8:19am UTC](https://forum.opensearch.org/t/how-to-minikubes-system-logs-share-in-opensearch-via-fluentbit/20029/2 "2024-06-28T08:19:24Z")

</div>

Seems that the network is not reachable, could you check the OpenSearch endpoint manually in the fluentbit side?

---

<div class="post-metadata">

**Author:** ![Ommkw](https://avatars.discourse-cdn.com/v4/letter/o/d26b3c/32.png) [@Ommkw](https://forum.opensearch.org/u/Ommkw)\
**Post date:** [July 4, 2024, 11:46am UTC](https://forum.opensearch.org/t/how-to-minikubes-system-logs-share-in-opensearch-via-fluentbit/20029/3 "2024-07-04T11:46:17Z")

</div>

when i try to use data prepper, so there are all logs get in opensearch dashboard through flyintbit

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [September 2, 2024, 11:47am UTC](https://forum.opensearch.org/t/how-to-minikubes-system-logs-share-in-opensearch-via-fluentbit/20029/4 "2024-09-02T11:47:09Z")

</div>

Closed on September 2, 2024, 11:47am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
