I'm trying to access array element after splitting a string into array using a 'split' processor in an ingest node pipeline?
I have a long string separated by slash ('/'). I only want to pass one substring to index, and dump the rest.
For example, I have a string "/aaa/bbb/ccc". I only want to index "ccc".
My current idea is to use split + set + remove, but I don't know how to access the array element after splitting.
PS: Is there a solution if I use Logstash?