Hi Everyone,
PLEASE HELP!!
Kibana 5.4
My team and I are trying to do a simple task: Given a string, extract a specific part of a URL. For example if my string is "GET path="/social/holiday-gift-guide/..." we want to always extract what is right after last slash of "social" and right before the slash before "guide". The use case is that "holiday-gift-guide" is just a place holder and will NOT always be the case. i.e gift-bag, christmas-tree, etc.
The following script has no errors. The assumption is that on line 8. indexOf("/social/") has special characters that proceed it which are =" . Because of this, I am not seeing expected behavior which is to return the fields I am interested in.
Can someone please give a detailed explanation on why this is happening? Not so sure that escaping the characters are going to work in this case.