Getting Data In

Log Pipeline Management - how to convert comma decimal to dot?

fongpen
Path Finder

Hi,

May i know how to convert raw data (cookedvalue) from comma to dot using regex? 

Raw Data in Log Observer

"instanceName","cookedvalue"

"services","87,8477154366277"

 

Result

"instanceName","cookedvalue"

"services","87.8477154366277"

Labels (3)
0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @fongpen,

You can use rex command with sed mode;

| rex mode=sed field=cookedvalue "s/,/./g"
If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma

PickleRick
SplunkTrust
SplunkTrust

I'm wondering how does this compare performancewise to

| eval cookedvalue=replace(cookedvalue,",",".")
0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...