Asking how to nested logstash

"archives_id": null,
"level_of_detail": null,
"items": [
{
"barcode": "000892",
"brn": "4188",
"collection": "["Books"]",
"updated_time": "2023-09-13 11:36:56.000000",
"suffix": "LAI",
"status": "Available",
"availability": "Yes",
"location": "Rotunda Library & Archive",
"class_number": "759.95957"
},
{
"barcode": "001445",
"brn": "4188",
"collection": "["Books"]",
"updated_time": "2023-09-13 11:36:56.000000",
"suffix": "LAI",
"status": "On-Loan",
"availability": "No",
"location": "Rotunda Library & Archive",
"class_number": "759.95957"
}
],
"seriestitle": null,

the collection is not in array, how to code in filter{} in logstash config file
i can't relly solve it
I need the collection data is in array and place inside the items: [{}]
Example:
items: [
{
collection: [
"Books"
]
]

I search from other pages that ask to use remove_field or split... but not really works for me
Can anyone please help me with this?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.