QuestionQ27Verified/Creating Field Aliases and Calculated FieldsCopy linkReport a problemAsk AstroTutorSave questionWhich of these expressions can be used to create a calculated field named megabytes?Aeval sc_bytes(1024/1024)Bsc_bytes(1024/1024)C| eval megabytes=sc_bytes(1024/1024)Dmegabytes=sc_bytes(1024/1024)Show AnswerAnswerExplanationA 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 moreAbout calculated fieldseval command syntaxShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion