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

request body template #26

Open
HatsuneMiku3939 opened this issue Jun 15, 2020 · 3 comments · May be fixed by #28
Open

request body template #26

HatsuneMiku3939 opened this issue Jun 15, 2020 · 3 comments · May be fixed by #28
Assignees

Comments

@HatsuneMiku3939
Copy link
Owner

No description provided.

@ppreyas
Copy link

ppreyas commented Aug 18, 2020

Can we use body tag to supply values ? something like the below? please help.

name test format json auto.offset.reset earliest

@HatsuneMiku3939 HatsuneMiku3939 self-assigned this Aug 20, 2020
@HatsuneMiku3939
Copy link
Owner Author

@ppreyas

After this issue was cleared , you can set a request body for POST, DELETE methods.
Is it hurry?

@ppreyas
Copy link

ppreyas commented Aug 20, 2020

@HatsuneMiku3939, I'm using this to ingest data from a rest proxy and was banking on this plugin to ingest data using the below piece of code.

<source>
@type http_pull
tag status
url https://restproxy-service.test.com/test/consumers/fluent
interval 20s
format json
http_method post
    <request_header>
    header Content-Type 
    value "application/vnd.kafka.v2+json"
    </request_header>
    <request_header>
    header Accept 
    value "application/vnd.kafka.v2+json"
    </request_header>
    <body>
    name fluent-pp
    format json
    auto.offset.reset earliest
    </body>
</source>

But this body part doesn't seem to work. If this is easy to add the body feature it will be really helpful to progress with my development work.

@HatsuneMiku3939 HatsuneMiku3939 pinned this issue Aug 20, 2020
@HatsuneMiku3939 HatsuneMiku3939 unpinned this issue Aug 20, 2020
@HatsuneMiku3939 HatsuneMiku3939 changed the title query string/request body template request body template Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants