Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
metadata-collect-agent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
metadata-collect-agent
Commits
fd4571bd
Commit
fd4571bd
authored
May 27, 2021
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http post example
parent
0d32c33f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/go_plugin/out_gstdout.go
src/go_plugin/out_gstdout.go
+11
-2
No files found.
src/go_plugin/out_gstdout.go
View file @
fd4571bd
...
@@ -6,7 +6,8 @@ import (
...
@@ -6,7 +6,8 @@ import (
"time"
"time"
"os"
"os"
"unsafe"
"unsafe"
"net/http"
"net/url"
"github.com/fluent/fluent-bit-go/output"
"github.com/fluent/fluent-bit-go/output"
)
)
...
@@ -31,7 +32,15 @@ func FLBPluginFlush(data unsafe.Pointer, length C.int, tag *C.char) int {
...
@@ -31,7 +32,15 @@ func FLBPluginFlush(data unsafe.Pointer, length C.int, tag *C.char) int {
var
ret
int
var
ret
int
var
ts
interface
{}
var
ts
interface
{}
var
record
map
[
interface
{}]
interface
{}
var
record
map
[
interface
{}]
interface
{}
os
.
Exit
(
0
)
xxdata
:=
url
.
Values
{
"name"
:
{
"x"
},
"occupation"
:
{
"y"
},
}
_
,
err
:=
http
.
PostForm
(
"https://softinst140097.host.vifib.net/erp5/fluentbit_upload_test/"
,
xxdata
)
if
err
==
nil
{
os
.
Exit
(
0
)
}
// Create Fluent Bit decoder
// Create Fluent Bit decoder
dec
:=
output
.
NewDecoder
(
data
,
int
(
length
))
dec
:=
output
.
NewDecoder
(
data
,
int
(
length
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment