sample.txt
id_field,key1=aaa; key2=bbb; key3=ccc
config.yml
in:
type: file
path_prefix: sample.txt
parser:
type: csv
columns:
- { name: id_field, type: string }
- { name: cookie, type: string }
filters:
- type: split
delimiter: '; '
keep_input: true
target_key: cookie
output_key: cookie_val
out:
type: stdout
embulk run config.yml
+-----------------+------------------------------+-------------------+
| id_field:string | cookie:string | cookie_val:string |
+-----------------+------------------------------+-------------------+
| id_field | key1=aaa; key2=bbb; key3=ccc | key1=aaa |
| id_field | key1=aaa; key2=bbb; key3=ccc | key2=bbb |
| id_field | key1=aaa; key2=bbb; key3=ccc | key3=ccc |
+-----------------+------------------------------+-------------------+
ESに格納できる形式を考えずに、以下にようにEmbulkで加工したのがインポートできればいいなと思っていました。