Fetch substring from a list of URL using scripted field


(Anup Ghoshal) #1

Hi ALL
I am using kibana-6.2.4-x86_64.rpm
I have a datafield as
data_link: ['http:xx.yy.com/dir/results/log1.txt', 'http:xx.yy.com/dir/results/log22.txt']

how to get a scripted field of ["log1.txt", 'log22.txt'] ?
Any help would be highly appreciated.
Thank you.


(J C ) #2

Hello. Check out Using Painless in Kibana scripted fields. Specifically, the Match a string using regex, and take action on a match and Return substring sections.


(system) #3

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