Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Cannot sum two numbers

$
0
0
I have the following problem: I have a variable "number_of_past_events" which comes from a **"| inputlookup file.csv"** and another variable from a sub search " **nr_events"**. When I try to create a new variable with the sum of these two variables like this: "**|eval new_number_of_events=number_of_past_events+nr_events "** this new number does not have a value. I tried to use table command like this "**| table number_of_past_events, nr_events,new_number_of_events**" and the output shows the first two correctly but the new_number_of_events does not have a value. How can I resolve this problem?

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>