QuestionQ27

VerifiedCreating Field Aliases and Calculated Fields

Which of these expressions can be used to create a calculated field named megabytes?

Explanation

A Splunk calculated field is defined with an eval-style assignment: the destination field name is placed on the left of =, and the calculation is placed on the right. megabytes=sc_bytes(1024/1024) is the only listed expression that assigns a result to the megabytes field; a leading pipe and eval are search-command syntax rather than the calculated-field expression itself.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!