Restating the requirements does not explain them. @Muthu_Vinith wrote: For example, I have location field containing AB, AC, AD. I need to sum these three locations and create a new location nam...
See more...
Restating the requirements does not explain them. @Muthu_Vinith wrote: For example, I have location field containing AB, AC, AD. I need to sum these three locations and create a new location named AM05, without replacing the existing AB, AC and AD. You have that. See the following example query | makeresults format=csv data="location,cap,login
AA01,10,5
AB02,6,0
AC03,10,0"
| appendpipe
[stats sum(cap) as cap, sum(login) as login
| eval location="AM05"]
| table location cap login @Muthu_Vinith wrote: When searching for AM05, I want to see the added values, and when searching for AB, it should display the existing value !! The AM05 location doesn't exist until this search runs. Therefore, you can't search for AM05.