Dashboards & Visualizations

Rename label chart

jip31jip31
Explorer

hi

in my request, i have a sourcename like this
Microsoft Office 15(count: 1, percent: 50.0)
i want to delete : could you tell me how to do please : regex, HTML code?
thanks

Tags (1)
0 Karma

jip31
Motivator

thanks!!!!!!!

0 Karma

niketn
Legend

@jip31jip31, what is the field name? is it really source or sourcename like you have mentioned in your question?

Also do you want to make this correction during index time or search time?

If you want it during search time following is run anywhere search based on sample data provided in the question:

|  makeresults
|  eval sourcename="Microsoft Office 15(count: 1, percent: 50.0)"
|  eval sourcename=replace(sourcename,":","")
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

niketn
Legend

@jip31 @jip31jip31 I have converted my comment to answer. If your issue is resolved please accept the answer to mark this question as answered!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

jip31jip31
Explorer

nobody for helping me please???

0 Karma

jip31jip31
Explorer

Sorry but ko again....

0 Karma

krishnab
Path Finder

try this

|table sourcename|eval sourcename=replace(sourcename,":","")

0 Karma

jip31jip31
Explorer

SORRY IT DOESN T WORK

0 Karma

p_gurav
Champion

Can you try something:

 | rex field=sourcename mode=sed "s/://g"
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...