- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to do splunk field extraction from a summary index?
Mostafa3081
New Member
08-30-2023
02:52 AM
I have an event log that looks like this
search_name=x, search_now=3.000, info_min_time=1692741600.000, info_max_time=1692828000.000, info_search_time=1692847620.636, app=Digital,
text="<a href=\"https://support.vodafone.co.uk/1627646512 \" target=\"_blank\"> ...etc ", info_log=l
use the command ... | table text to extract the 'text' field, you get the expected result <a href=\"https://support.vodafone.co.uk/1627646512 \" target=\"_blank\"> ...etc
However, when I attempt to extract the same 'text' field from the same event, but this time from a summary index, I get a different result <a href=\
and the whole value is presented in the event tap when i enable the verbose mode so the whole value is in the summary index but i can't show it.
how to prevent splunk from truncating the result if it is in the summary index
use the command ... | table text to extract the 'text' field, you get the expected result <a href=\"https://support.vodafone.co.uk/1627646512 \" target=\"_blank\"> ...etc
However, when I attempt to extract the same 'text' field from the same event, but this time from a summary index, I get a different result <a href=\
and the whole value is presented in the event tap when i enable the verbose mode so the whole value is in the summary index but i can't show it.
how to prevent splunk from truncating the result if it is in the summary index
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

gcusello

SplunkTrust
08-30-2023
02:59 AM
Hi @Mostafa3081,
let me understand: you want to extract a part of a field in a summary index, is it correct?
If this is your requirement and if you can, the easiest way is to save the field to extract in the summary generating search.
Anyway, you can extract the part of the "text" field using a rex command:
| rex field=text "href\=\\\"(?<url>[^ ]*)"
that you can test at https://regex101.com/r/6jptux/1
Ciao.
Giuseppe
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mostafa3081
New Member
09-01-2023
04:30 AM
thanks for your replay.
No, I want the exact opposite. I want to extract the entire text value. I received a truncated version, and I can use regex to extract the complete value. However, why did the value get truncated when retrieved from a summary index but not from the normal index?
