Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: add Fluentbit Splunk Example #46

Open
colinbjohnson opened this issue Dec 8, 2020 · 3 comments
Open

Feature Request: add Fluentbit Splunk Example #46

colinbjohnson opened this issue Dec 8, 2020 · 3 comments
Labels
feature-request help wanted Extra attention is needed

Comments

@colinbjohnson
Copy link

It would be nice to have a fluentbit Splunk example.

@PettitWesley
Copy link
Contributor

I agree... basically we need to take this and turn it into a firelens example: https://github.com/splunk/fluent-plugin-splunk-hec

I could do it myself, though ideally someone from Splunk would do it and help test/validate.

@LeonardoDG2084
Copy link

LeonardoDG2084 commented Jan 26, 2021

Hi,
I have the spunk as output from my awsfirelens, and this is my actual configuration, I hope this help you! If you want I can submit a PR with complete example, (In my scenario I`m using terraform to create task_definition file and fluent-bit.conf)

...........

   "logConfiguration": {
        "logDriver": "awsfirelens",
        "secretOptions": null,
        "options": {
          "Splunk_Send_Raw": "On",
          "Splunk_token": "YourTokenHere",
          "Port": "8088",
          "Host": "hec.yout.url.",
          "Name": "splunk"

...........

     "firelensConfiguration": {
        "type": "fluentbit",
        "options": {
          "config-file-type": "s3",
          "config-file-value": "arn:aws:s3:::customer-success-prod/ecs-cluster/service/mib-gateway/fluent-bit.conf"
        }
      },

...........

fluent-bit.conf file (the awsfirelens solution change the file name fluent-bit.conf from S3 and include as external.conf)

[FILTER]
    Name nest
    Match *
    Operation nest
    Wildcard *
    Nest_under event

[FILTER]
    Name      modify
    Match     *
    Add sourcetype <AddYourSourceType>
    Add index <AddYourIndex>

@PettitWesley
Copy link
Contributor

If you want I can submit a PR with complete example

@LeonardoDG2084 Please do! That would be awesome!

@PettitWesley PettitWesley added the help wanted Extra attention is needed label Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants