bmc-ade-http-pull plug-in


This plug-in is an extension of the http_pull plug-in that you can use to pull data from REST APIs.

Plug-in parameters

The following table lists the parameters and their usage:

Parameter

Description

Mandatory

@type

Specify the type of plug-in. For this plug-in, the type is bmc_ade_http_pull.

Type: String

Example
<filter tagname>
        @type bmc_ade_http_pull
...
...
...
</filter>

Yes

tag

Specify the tag name.

Type: String

Example
#Syntax
<source>
@type bmc_ade_http_pull

tag status
url http://your-infrastructure/api/status.json
interval 1s

format json
</source>


#Example
# 2017-05-17 21:41:47.872951000 +0900 status: {"url":"http://yourinfrastructure/api/status.json","status":200,"message":{ ... }}


#Output
{
"url": "http://your-infrastructure/api/status.json",
"status": 200,
"message": {
// response of your infra structure
}
}

Yes

url

Specify the URL of the remote server.

Type: String

Yes

agent

Specify the  user agent details.

Type: String

Default: bmc-ade-http-pull

Example
<source>
@type bmc_ade_http_pull

tag status
url http://your-infrastructure/api/status.json
interval 1s

format json
agent infrastructure_monitor
</source>

No

interval

Specify the time interval between periodic requests. You can specify the time interval in terms of seconds, minutes, hours, or days.

Type: time

Example

interval 1s

interval 24h

Yes

format

Specify the response body format.

Yes

status_only

Specify whether to parse the request body. Set one of the following values:

  • True: The request body is not parsed. If you need only the http status code and want to exclude response body, you can turn off the response body by setting it to true.
  • False: The request body is parsed.

Type: Boolean

Default: False

Example
<source>
@type bmc_ade_http_pull

tag fluentd.status
url http://your-infrastructure/healthcheck
interval 1s

status_only true
format none
</source>

No

http_method

Specify the http request method. You can set one of the following values:

  • get
  • post
  • delete

If the status_only parameter is set to true, the http_method value is set to head by default.

Type: enum

Default: get

No

timeout

Specify the timeout of each request.

Type: time

Default: 10s

No

proxy

Specify the HTTP proxy URL to use for requests. You can choose to send your requests through the proxy server.

Type: string

Default: Nil

Example
<source>
@type bmc_ade_http_pull

tag status
url http://your-infrastructure/api/status.json
proxy http://your-proxy-server:3128
interval 1s

format json
</source>

No

user

Specify the user details. This parameter applies to the HTTP basic authentication type.

Type: string

Default: Nil

No

password

Specify the password for the specified user. This parameter applies to the HTTP basic authentication type.

Type: string

Default: Nil

Example
<source>
@type bmc_ade_http_pull

tag status
url http://your-infrastructure/api/status.json
interval 1s

format json
user foo
passwrd bar
</source>

No

payload

Specify the payload of the post request.

Type: string

Default: Nil

No

response_header

Specify the name of the response header. If you want to monitor the response header along with the response body, provide the name of header in response_header sections.

Type: section

Default: Nil

Example
<source>
@type bmc_ade_http_pull

tag status
url http://your-infrastructure/api/status.json
interval 1s

format json

<response_header>
header Content-Type
</response_header>

<response_header>
header Content-Length
</response_header>
</source>

No

request_header

Specify the name-value pair of the custom request header.

Type: section

Default: Nil

Example
<source>
@type bmc_ade_http_pull
tag status
url http://your-infrastructure/api/status.json
interval 1s

format json

<request_header>
header API_ACCESS_KEY
value hatsune
</request_header>

<response_header>
header API_ACCESS_KEY_SECRET
value miku
</response_header>
</source>

No

verify_ssl

Specify whether to confirm the SSL verification. Set one of the following values:

true: Apply SSL verification.

false: Skip SSL verification.

Type: Boolean

Default: true

No

ca_path

Specify the absolute path of the directory where the ca_file is stored. Use this parameter with ca_file.

Type: String

Default: Nil

Note: If your infrastructure has https endpoints secured by a self-signed certification, you can provide the custom certification file by using  the ca_path and ca_file parameters.

No

ca_file

Specify the name of the ca_file stored in the directory path specified in the ca_path directory.

Type: String

Default: Nil

Example
<source>
@type bmc_ade_http_pull

tag status
url https://your-infrastructure/api/status.json
interval 1s
ca_path /somewhere/ca/stored
ca_file /somewhere/ca/stored/server.crt

format json
</source>

No

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*