You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/07/05 17:54:34 UTC

[GitHub] [skywalking] StayTherapy opened a new issue #7250: How to push log to SkyWalking with fluent-bit?

StayTherapy opened a new issue #7250:
URL: https://github.com/apache/skywalking/issues/7250


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [X] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
   
   For simple, I  want collect JSON log with `fluent-bit` and direct push to SkyWalking .
   
   Follow [Log Collecting And Analysis](https://skywalking.apache.org/docs/main/latest/en/setup/backend/log-analyzer/), I setup a `fluent-bit` in docker like this:
   
   **fluent-bit.conf**
   ```bash
   [SERVICE]
       Flush          5
       Daemon         Off
       Log_Level      warn
       Parsers_File   fluent-bit-parser.conf
   [INPUT]
       Name           tail
       Path           /logs/*.log
       Parser         my-log-format
   [OUTPUT]
       Name            stdout
       Match           *
       Format          json
   [OUTPUT]
       Name            http
       Match           *
       Host            oap
       Port            12800
       URI             /v3/logs
       Format          json
   ```
   
   **fluent-bit-parser.conf**
   ```bash
   [PARSER]
       Name   my-log-format
       Format json
   ```
   
   
   The log of `fluent-bit` is fine, JSON log printed. **But** there is nothing in `log` page in SkyWalking UI ,it's always `No Data`.
   
   Is there any configuration of `skywalking-oap-server` should be update?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #7250: How to push log to SkyWalking with fluent-bit?

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7250:
URL: https://github.com/apache/skywalking/issues/7250#issuecomment-874363699


   https://github.com/apache/skywalking/tree/5dd56a5ca45c1bc423af71dc0829aed1221621ac/test/e2e/e2e-test/docker/log/fluent-bit Are you using this setup? We have tested in the e2e for every commit.
   Your description is hard to reply. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #7250: How to push log to SkyWalking with fluent-bit?

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #7250:
URL: https://github.com/apache/skywalking/issues/7250


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] StayTherapy commented on issue #7250: How to push log to SkyWalking with fluent-bit?

Posted by GitBox <gi...@apache.org>.
StayTherapy commented on issue #7250:
URL: https://github.com/apache/skywalking/issues/7250#issuecomment-880067755


   @wu-sheng Thanks, problem resolved.
   
   I think the key point is : [log-data-protocol](https://skywalking.apache.org/docs/main/latest/en/protocols/log-data-protocol/#http-api)
   
   Before push log , we can POST to http://OAP:12800/v3/logs , and check the JSON body.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] zhujinhu21 edited a comment on issue #7250: How to push log to SkyWalking with fluent-bit?

Posted by GitBox <gi...@apache.org>.
zhujinhu21 edited a comment on issue #7250:
URL: https://github.com/apache/skywalking/issues/7250#issuecomment-888909417


   @StayTherapy  I use https://github.com/apache/skywalking/tree/5dd56a5ca45c1bc423af71dc0829aed1221621ac/test/e2e/e2e-test/docker/log/fluent-bit confi file. but fluent-bit tell me " [ warn] [router] NO match for stdout.0 output instance"
   ![企业微信截图_16275468733071](https://user-images.githubusercontent.com/4327149/127457715-1ed9a275-40f9-4ff5-b6f0-108d9b7edde3.png)
   my fluent-bit.conf file
   ![Uploading 企业微信截图_16275469854216.png…]()
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] zhujinhu21 commented on issue #7250: How to push log to SkyWalking with fluent-bit?

Posted by GitBox <gi...@apache.org>.
zhujinhu21 commented on issue #7250:
URL: https://github.com/apache/skywalking/issues/7250#issuecomment-888909417


   @StayTherapy  I use https://github.com/apache/skywalking/tree/5dd56a5ca45c1bc423af71dc0829aed1221621ac/test/e2e/e2e-test/docker/log/fluent-bit confi file. but fluent-bit tell me " [ warn] [router] NO match for stdout.0 output instance"
   ![企业微信截图_16275468733071](https://user-images.githubusercontent.com/4327149/127457715-1ed9a275-40f9-4ff5-b6f0-108d9b7edde3.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] zhujinhu21 commented on issue #7250: How to push log to SkyWalking with fluent-bit?

Posted by GitBox <gi...@apache.org>.
zhujinhu21 commented on issue #7250:
URL: https://github.com/apache/skywalking/issues/7250#issuecomment-889796305


   @wu-sheng , hi can i use skywalking 8.6.0 version with fluent-bit


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #7250: How to push log to SkyWalking with fluent-bit?

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #7250:
URL: https://github.com/apache/skywalking/issues/7250


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #7250: How to push log to SkyWalking with fluent-bit?

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7250:
URL: https://github.com/apache/skywalking/issues/7250#issuecomment-874363699


   https://github.com/apache/skywalking/tree/5dd56a5ca45c1bc423af71dc0829aed1221621ac/test/e2e/e2e-test/docker/log/fluent-bit Are you using this setup? We have tested in the e2e for every commit.
   Your description is hard to reply. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] zhujinhu21 edited a comment on issue #7250: How to push log to SkyWalking with fluent-bit?

Posted by GitBox <gi...@apache.org>.
zhujinhu21 edited a comment on issue #7250:
URL: https://github.com/apache/skywalking/issues/7250#issuecomment-888909417


   @StayTherapy  I use https://github.com/apache/skywalking/tree/5dd56a5ca45c1bc423af71dc0829aed1221621ac/test/e2e/e2e-test/docker/log/fluent-bit confi file. but fluent-bit tell me " [ warn] [router] NO match for stdout.0 output instance"
   ![企业微信截图_16275468733071](https://user-images.githubusercontent.com/4327149/127457715-1ed9a275-40f9-4ff5-b6f0-108d9b7edde3.png)
   my fluent-bit.conf file
   ![企业微信截图_16275469854216](https://user-images.githubusercontent.com/4327149/127458900-8448c37f-a2b9-4c37-9001-00bb8c0de41d.png)
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org