Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

extracting fields between pattern in a search and and calculating length of value

$
0
0
Hello. I have a simmilar quesiton to this : https://answers.splunk.com/answers/176585/how-to-extract-a-field-between-two-patterns-in-a-s.html I want to do something similar for Get Request strings with patterns similar to this : GET /~/rest/collection?ghostAccountPrompts=LP36,IL46,ID59&hyperlinkPrompts between ? AND = is the field_Name . in the above the field_Name is ghostAccountPrompts I need to extract everything between field_Name= and & pattern so i can do stats searches include calculate the length of the value of the field. so in the above I need to calculate the length of value LP36,IL46,ID59 which in this example is 14. what I want to end up with is a table with Extracted field names with length and Count Field Name Length Count ABC 20 3 ABC 10 1 DEF 10 4 can you help ?

Viewing all articles
Browse latest Browse all 47296

Trending Articles