Publisher
Overview
The Publisher plugin enables you to publish data from an FKM outbound stream to an index on any of the following:
-
Elasticsearch host
-
Obcerv
-
Splunk server
The Publisher plug-in supports the following versions:
Destination | Version/s |
---|---|
Elasticsearch | 6.2.4 to 7.4.1 |
Obcerv | 1.0 |
Splunk server | 7.3.1 |
Intended audience
This guide is directed towards Geneos users who want to publish data from a configured FKM outbound stream to any of the following:
-
Elasticsearch server
-
Obcerv
-
Splunk server
As a user, you should be familiar with the use and capability of the FKM plug-in, the Elasticsearch API, Obcerv, and Splunk.
Prerequisites
Java requirements
- You must have Java installed on the machine running the Netprobe. For information on supported Java versions, see Java support in Geneos 5.x Compatibility Matrix.
- Once you have Java installed, configure the environment variables required by the Netprobe so that it can locate the required resource files. For guidance, see Configure the Java environment.
Caution: The Java installation and environment configuration is a common source of errors for users setting up Java-based components and plug-ins. It is recommended to read Configure the Java environment to help you understand your Java installation.
Obcerv requirements
If you are looking to publish data to Obcerv, then you need to configure Obcerv connection details in the Gateway. The following Obcerv connection > Mode > connection configurations will be received and used by the Publisher plugin:
-
Service address
-
Credentials
-
Verify server certificate
-
Root certificates
For more information, see Obcerv Quickstart Guide.
Elasticsearch credentials
If you are looking to publish data to Elasticsearch, then you need the following:
- Elasticsearch server host name or IP address
- Elasticsearch server port
- Elasticsearch server credentials, if applicable
You must also be familiar with Elasticsearch API, as well as how it is implemented in your organisation.
Setup and configuration
Setup involves the following tasks:
- Create the Publisher sampler.
- Associate the Publisher sampler with a managed entity.
- Publish an outbound stream from the FKM sampler.
Note: If you are using this plugin with Gateway Hub, you must create a user-define data schema. For more information, see Create a data schema.
Create the Publisher sampler
- In the Gateway Setup Editor, create a new sampler by right-clicking the Samplers folder and selecting New Sampler.
- Enter a name for this sampler in the Name field.
- Set the sample interval, if necessary.
- In the Plugin field, click the drop-down list and select publisher.
- In the Destination field, select the destination server.
- Click Save current document
to apply your changes.
You can configure the following fields in the Publisher sampler:
Field | Description |
---|---|
Sample interval |
Controls the period when the Admin View is updated with events that occurred in the Publisher plugin, which is measured in seconds. The Admin View resets for every sample interval. You must set the interval value to a non-negative integer value. A value of Mandatory: No Default: 20 Unit: Seconds |
Destination |
Publishes data from a configured outbound stream to any of the following destination servers:
|
Success: The sampler can now be associated with a managed entity.
Configure the Elasticsearch destination
If you are publishing to Elasticsearch, configure the plugin as follows:
- In the Host field, enter the Elasticsearch server host name or IP address.
- In the Port field, enter the port number.
- In the Index field, enter the Elasticsearch index where you want to add the JSON document.
- If you want to change the
_type
endpoint, specify the endpoint in the Endpoint field. - If you want to use an HTTPS connection between the Publisher sampler and the Elasticsearch host, select
Https
under Protocols. - If authentication is needed to access the Elasticsearch host, click Authentication > Type and select either
Basic
orBearer
. For more information on these authentication types, see Basic configuration.
Note: You can toggle between data
and var
for the Host and Port fields. This toggle option allows you to define either a text or numerical value (data
) or variable (var
) for these fields.
Configure the Splunk destination
'If you are publishing to Splunk, configure the plugin as follows:
- In the Host field, enter the Splunk server host name or IP address.
- In the Port field, enter the port number.
- If you want to change the index, specify the index where you want to add the JSON document in the Index field.
- If you want to change the batch size, specify the value in the Batch size field.
- In the Token field, input the HEC token or a variable.
Note: You can toggle between data
and var
for the Host and Port fields. This toggle option allows you to define either a text or numerical value (data
) or variable (var
) for these fields.
Associate the sampler with a Managed Entity
- In the Gateway Setup Editor, create a new managed entity by right-clicking the Managed entities folder and selecting New Managed entity.
- Enter a name for this managed entity. For example, enter "publisher-me" in the Name field.
- In the Options field, select the probe on which you want the sampler to run.
- Under the Sampler field, click Add new.
- In the text field under Ref, select the sampler you just created from the drop-down list.
- Click Save current document
to apply your changes.
Success: The Publisher Admin dataview now appears under the managed entity in the Active Console state tree.
Publish an outbound stream from the FKM sampler
- In the Gateway Setup Editor, locate and select the FKM sampler you wish to publish an outbound stream from.
- In Files, click inside the Outbound stream name field for the source you want to publish from.
- In the Outbound stream name field, specify the Publisher sampler you have just created. The format must follow a fully qualified stream name:
- Click Save current document
to apply your changes.
managedEntity-name.publisher-sampler(type)
For example:
ME.Publisher
Note: The managed entity part of the format can be omitted if the sampler falls under the same managed entity as the FKM sampler.
Success: The Publisher sampler now receives outbound stream messages coming from the configured FKM sampler.
Obcerv Admin View
The Publisher sampler automatically creates the Admin view to monitor the status of its streams, if there are any.
Headline legend
Name | Description |
---|---|
host | Obcerv host name or IP address that the Publisher sampler is connected to. |
port | Obcerv port that the Publisher sampler is connected to. |
samplingStatus |
Shows |
Table legend
Name | Description |
---|---|
streamName | Name of the FKM outbound stream tied to the Publisher sampler. |
connectionStatus |
Shows the state of the Obcerv connection. Possible values are the following:
|
sendState |
Shows how the message is processed. Possible values are the following:
|
deliveryStatus |
Shows the status of the last message delivery attempt. Possible values are the following:
|
byteRate | Number of bytes sent, whether successful or not, per duration within the last sampling interval. |
messageRate | Number of successfully sent messages per duration within the last sampling interval. |
maxBufferSize |
Maximum number of messages that the sampler holds in the stream. The sampler holds these messages until they are consumed by another sampler. |
messagesInBuffer |
Number of messages from the native stream waiting to be consumed by the Publisher sampler within the sampling interval. |
messagesDropppedPerSample |
Number of dropped messages due to a permanent failure, or a full buffer within the last sampling interval. |
messagesDroppedRate | Value of messagesDropppedPerSample per duration within the last sampling interval. |
Note: Stream messages are stored in the buffer until they are consumed by another component. However, If there are no samplers or clients consuming the stream, then the stream registry purges the messages immediately.
Basic configuration
A Publisher sampler receives its stream from a corresponding FKM sampler. If you wish to assign an outbound stream to a Publisher sampler, see File Keyword Monitor configuration.
Note: You can safely update the configuration of this plug-in without causing the Netprobe to restart.
Advanced configuration
Field | Description |
---|---|
Create admin view |
Enables or disables the sampler Obcerv Admin View on the managed entity. Default: Enabled |
Elasticsearch Admin View
The Publisher sampler automatically creates the Admin view to monitor the status of its streams, if there are any.
Headline legend
Name | Description |
---|---|
protocol | Connection protocol used. For example, HTTP or HTTPS. |
host | Elasticsearch server host name or IP address that the Publisher sampler is connected to. |
port | Elasticsearch server port that the Publisher sampler is connected to. |
index |
Elasticsearch index where the stream data is published. This field conforms to the Elasticsearch REST API. For more information, see the Index API page of theElasticsearch Reference. |
endpoint |
Elasticsearch This field conforms to the Elasticsearch REST API. For more information, see the Index API page of the Elasticsearch Reference. |
samplingStatus |
Shows |
Table legend
Name | Description |
---|---|
streamName | Name of the FKM outbound stream tied to the Publisher sampler. |
sendState |
Shows how the message is processed. Possible values are the following:
|
deliveryStatus |
Shows the status of the last message delivery attempt. Possible values are the following:
|
byteRate | Number of bytes sent, whether successful or not, per duration within the last sampling interval. |
messageRate | Number of successfully sent messages per duration within the last sampling interval. |
maxBufferSize |
Maximum number of messages that the sampler holds in the stream. The sampler holds these messages until they are consumed by another sampler. |
messagesInBuffer |
Number of messages from the native stream waiting to be consumed by the Publisher sampler within the sampling interval. |
messagesDropppedPerSample |
Number of dropped messages due to a permanent failure, or a full buffer within the last sampling interval. |
messagesDroppedRate | Value of messagesDropppedPerSample per duration within the last sampling interval. |
Note: Stream messages are stored in the buffer until they are consumed by another component. However, If there are no samplers or clients consuming the stream, then the stream registry purges the messages immediately.
Basic configuration
A Publisher sampler receives its stream from a corresponding FKM sampler. If you wish to assign an outbound stream to a Publisher sampler, see File Keyword Monitor configuration.
Note: You can safely update the configuration of this plug-in without causing the Netprobe to restart.
Note: If you are using this plugin with Gateway Hub, you must create a user-define data schema. For more information, see Create a data schema.
Field | Description |
---|---|
Host |
Elasticsearch server host name or IP address. You can toggle between entering a text or numerical value ( Mandatory: Yes |
Port |
Elasticsearch server port. You can toggle between entering a numerical value ( Mandatory: No Default: |
Index |
Index where you want to add the JSON document. This field conforms to the Elasticsearch REST API. For more information, see the Index API page of the Elasticsearch Reference. Mandatory: Yes |
Buffer size |
Sets the maximum number of messages that the Publisher sampler holds in the stream. The sampler holds these messages until they are consumed by another sampler. Mandatory: No Default: |
Endpoint |
Elasticsearch This option conforms to the Elasticsearch REST API. For more information, see the Index API page of the Elasticsearch Reference. Mandatory: No |
Protocol |
Connection protocol to use. By default, this is HTTP. Use HTTPS if you want to set a secure connection. Mandatory: No |
Authentication |
Authentication method to use. The Publisher plug-in supports the following authentication types:
Mandatory: No |
Bearer authentication
The bearer authentication option enables you to connect to an Elasticsearch server via token API, without needing basic authentication.
The Publisher sampler supports the bearer authentication password
grant type, as defined in the Elasticsearch API. For detailed information, see the Get token API page of the Elasticsearch Reference.
password
This grant type implements the OAuth 2.0 resource owner password credentials grant. A trusted user (the grantor) can either retrieve a token for their use or on behalf of an end-user (the grantee).
Advanced configuration
Field | Description |
---|---|
Create admin view |
Enables or disables the Elasticsearch Admin View on the managed entity. The Admin view is enabled by default. You can toggle between a checkbox ( Default: Enabled |
Splunk Admin View
The Publisher sampler automatically creates the Admin view to monitor the status of its streams, if there are any.
Headline legend
Name | Description |
---|---|
protocol | Connection protocol used. For example, HTTP or HTTPS. |
host | Splunk server host name or IP address that the Publisher sampler is connected to. |
port | Splunk HEC port that the Publisher sampler is connected to. |
index |
Splunk index where the stream data is published. |
samplingStatus |
Shows |
Table legend
Name | Description |
---|---|
streamName | Name of the FKM outbound stream tied to the Publisher sampler. |
sendState |
Shows how the message is processed. Possible values are the following:
|
deliveryStatus |
Shows the status of the last message delivery attempt. Possible values are the following:
|
byteRate | Number of bytes sent, whether successful or not, per duration within the last sampling interval. |
messageRate | Number of successfully sent messages per duration within the last sampling interval. |
maxBufferSize |
Maximum number of messages that the sampler holds in the stream. The sampler holds these messages until they are consumed by another sampler. |
messagesInBuffer |
Number of messages from the native stream waiting to be consumed by the Publisher sampler within the sampling interval. |
messagesDropppedPerSample |
Number of dropped messages due to a permanent failure, or a full buffer within the last sampling interval. |
messagesDroppedRate | Value of messagesDropppedPerSample per duration within the last sampling interval. |
Note: Stream messages are stored in the buffer until they are consumed by another component. However, If there are no samplers or clients consuming the stream, then the stream registry purges the messages immediately.
Basic configuration
A Publisher sampler receives its stream from a corresponding FKM sampler. If you wish to assign an outbound stream to a Publisher sampler, see File Keyword Monitor configuration.
Note: You can safely update the configuration of this plug-in without causing the Netprobe to restart.
Note: If you are using this plugin with Gateway Hub, you must create a user-define data schema. For more information, see Create a data schema.
Advanced configuration
Field | Description |
---|---|
Create admin view |
Enables or disables the sampler Splunk Admin View on the managed entity. Default: Enabled |