Splunk Search

Long field names

andrewpense825
Explorer

Good day, I often run up against the issue of wanting to drag the text of a field name from the browser into a separate text editor.  Whenever I drag it, it works but it brings all the html metadata with it.  Sometimes these field names are very long and so truncated on the screen its very tough without copying and pasting.   Has anyone found good work around for this? 

Right now the field names, when dragged from the web browser into a text editor, comes through like this:

https://fakebus.splunkcloud.com/en-US/app/search/search?q=search%20%60blocks%60&sid=1726153610.12967...

Ironically dragged text field from splunk into this web dialog box work fine.

Labels (1)
1 Solution

andrewpense825
Explorer

@richgalloway This is great, this is getting me somewhere!  None of those fixes worked because one of the root causes of my problem is the string for the key is so long it gets truncated off of the screen so I can't roll my mouse over a whole highlight.  I do have a short term fix of just mouse zooming out quickly to grab a long field but its like a very difficult video game.  Thanks for your help!

 

View solution in original post

0 Karma

Davidwilson
Explorer


 I’ve run into this too, especially with really long field names in the UI. One workaround that helped me was copying the field name directly from the Inspect / Developer Tools in the browser instead of dragging it from the page. Another option is to use Splunk’s field picker or | fields / | table commands to reference the field name and copy it from the search bar output, where it’s fully visible. It’s not perfect, but it’s a lot less painful than trying to mouse-highlight a truncated field.

richgalloway
SplunkTrust
SplunkTrust

Sometimes you can right-drag and then opt to copy without formatting.  If not, copy the field name and use Ctrl-Shift-V to paste it without the HTML.

---
If this reply helps you, Karma would be appreciated.

andrewpense825
Explorer

@richgalloway This is great, this is getting me somewhere!  None of those fixes worked because one of the root causes of my problem is the string for the key is so long it gets truncated off of the screen so I can't roll my mouse over a whole highlight.  I do have a short term fix of just mouse zooming out quickly to grab a long field but its like a very difficult video game.  Thanks for your help!

 

0 Karma

andrewpense825
Explorer

Best work around I've come to, and its not half bad considering that I don't have to deal with these long field names very often, is to right click>open in inspector (this is in Edge by the way) and then drag the field name from the inspector to the editor of choice.

Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and stall ...

Print, Leak, Repeat: UEBA Insider Threats You Can't Ignore

Are you ready to uncover the threats hiding in plain sight? Join us for "Print, Leak, Repeat: UEBA Insider ...

Splunk MCP & Agentic AI: Machine Data Without Limits

  Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization ...