Go to the SlapOS dashboard and click on the Services (l) button.

Click on the add button.

Select Fluentd.

Pick the newest version.
Select the machine on which you previously supplied Fluentd by clicking on the Computer Node drop-down list. This is the machine on which the instance will be requested.

Enter a title for your Fluentd instance

Fill in the Fluentd configuration parameters in the Instance Parameter field. You can use the <parameter> tag to specify certain parameters of your instance. The name for the Fluentd configuration parameter is conf_text. Because the Instance Parameter itself is written in XML we have to escape our Fluentd Configuration File. You can use an Online XML escape tool (for instance appdevtools).
<?xml version="1.0" encoding="utf-8" ?><instance>
<parameter id="conf_text"><source>
@type forward
port 24224
bind ::0
</source>
<match YOUR_TAG_NAME>
@type wendelin
streamtool_uri https://softinstXXXXXX.host.vifib.net/erp5/portal_ingestion_policies/default
user zope
password XXXXX
<buffer>
flush_mode interval
@type file
path fluentd-buffer-file/
flush_interval 1m
</buffer>
</match>
</parameter>
</instance>
Finally click Proceed to request the instance.
config_params = """<source>
@type forward
port 24224
bind ::0
</source>
<match sensor_1.sample-environment-raw-data>
@type wendelin
streamtool_uri https://softinstXXXXXX.host.vifib.net/erp5/portal_ingestion_policies/default
user zope
password ******
<buffer>
flush_mode interval
@type file
path fluentd-buffer-file/
flush_interval 1m
</buffer>
</match>"""
request("https://lab.nexedi.com/nexedi/slapos/raw/master/software/fluentd/software.cfg", "IOT-Gateway-Tutorial-Fluentd",filter_kw={"computer_guid": "YOUR_COMPUTER_ID"}, partition_parameter_kw={"conf_text":config_params})
As the fluentd configuration has many parameters for convenience we will write a short python script which will request the instance, instead of calling request function from Slapos Client.
Create a python script and name it request_fluentd.py and copy/paste the presented code.
** Don't forget to correctly fill in your computer reference, Instance name, url etc.
As we are requesting instance of fluentd for the same computer the reference is the same as when we were supplying the software.
"YOUR_INSTANCE_NAME" - give your instance a distinguishing name so you can later easily find it. For example IOT-Gateway-Tutorial-Fluentd.
Once it's ready run it by calling following command :
slapos console request_fluentd.py