You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for reading a file from a remote URL in Read CSV attachment action (#84)
* Add support for reading a file from a remote URL in Read CSV attachment action
* Update Sailor version to 2.6.24
Co-authored-by: denis.gladikov <denis.gladikov@elastic.io>
Co-authored-by: Pavel Voropaiev <pavel.voropaiev@elastic.io>
*`CSV URL` - the full URL to the file for retrieving data.
42
40
*`Emit all messages` - this checkbox configures output behavior of the component. If the option is checked - the component emits an array of messages, otherwise - the component emits a message per row.
43
41
*`CSV Header` - this is a required field. Input the names of headers separated with a comma.
@@ -49,17 +47,17 @@ outgoing message.
49
47
50
48
### Read CSV attachment
51
49
52
-
This action will read the CSV attachment of the incoming message and output
53
-
a `JSON` object. To configure this action the following fields can be used:
50
+
This action will read the CSV attachment of the incoming message or from the specified URL and output a JSON object.
51
+
To configure this action the following fields can be used:
52
+
54
53
54
+
*`CSV URL` - the full URL to the file for retrieving data. Leave the field blank and action will read CSV attachment of the incoming message (if any). Error will be thrown if URL of the CSV is missing and no CSV file in incoming message found
55
55
*`Emit all messages` - this checkbox configures output behavior of the component. If the option is checked - the component emits an array of messages, otherwise - the component emits a message per row.
56
56
*`CSV Header` - this is a required field. Input the names of headers separated with a comma.
57
57
*`Separators` - Specify the separator type. Usually it is a comma (`,`) but values like Semicolon (`;`), Space (``), Tab (`\t`) and Hash (`#`) are also supported.
58
58
*`Skip rows` - if you know that the incoming CSV file has certain number of headers you can indicate to skip them. The supported values are `None`, `First row`, `First two`, `First three` and `First four`.
59
59
*`Data columns` - here the values will be added dynamically based on the values in the `CSV Header` field. Here each data column will be listed with the name, Data Type and the Format to enable further configuration.
*`Include Header` - this select configures output behavior of the component. If option is `Yes` or no value chosen than header of csv file will be written to attachment, this is default behavior. If value `No` selected than csv header will be omitted from attachment.
@@ -93,8 +91,6 @@ When columns are added in the UI, you will be presented with an opportunity to
93
91
provide a JSONata expression per column. If you require number formatting that
94
92
is specific to a locale, the JSONata expression should handle that concern.
95
93
96
-

97
-
98
94
The output of the CSV Write component will be a message with an attachment. In
99
95
order to access this attachment, the component following the CSV Write must be
100
96
able to handle file attachments.
@@ -194,7 +190,7 @@ able to handle file attachments.
194
190
#### General
195
191
196
192
1. You may get `Component run out of memory and terminated.` error during run-time, that means that component needs more memory, please add
197
-
`EIO_REQUIRED_RAM_MB` environment variable with an appropriate value (e.g. value `512` means that 512 MB will be allocated) for the component in this case.
193
+
`EIO_REQUIRED_RAM_MB` environment variable with an appropriate value (e.g. value `1024` means that 1024 MB will be allocated) for the component in this case.
198
194
2. You may get `Error: write after end` error, as a current workaround try increase value of environment variable: `TIMEOUT_BETWEEN_EVENTS`.
199
195
3. Maximal possible size for an attachment is 10 MB.
200
-
4. Attachments mechanism does not work with [Local Agent Installation](https://support.elastic.io/support/solutions/articles/14000076461-announcing-the-local-agent-)
196
+
4. Attachments mechanism does not work with [Local Agent Installation](https://docs.elastic.io/getting-started/local-agent.html)
0 commit comments