Exam CCFH-202 All QuestionsBrowse all questions from this exam
Question 14

How do you rename fields while using transforming commands such as table, chart, and stats?

    Correct Answer: A

    To rename fields when using transforming commands such as table, chart, and stats, you should use the rename command after the transforming command. For example, 'stats count by ComputerName | rename count AS total_count'. This method allows you to rename the fields without affecting sub-queries and statistical analysis.

Discussion
examtopics3000Option: A

For me, the correct answer is A."By renaming the fields with the “rename” command after the transforming command. e.g. “stats count by ComputerName | rename count AS total_count”

joal23Option: A

Letter A, because letter D is wrong. See this example: event_platform=win event_simpleName=ProcessRollup2 FileName=PowerShell.exe | stats count(aid) as psExecutionCount by FileName You can see on this url: https://www.reddit.com/r/crowdstrike/comments/ns4k9q/20210604_cool_query_friday_stats/

ChiquitabanditaOption: A

I change my answer to A https://docs.splunk.com/Documentation/Splunk/8.2.3/SearchReference/Rename

ChiquitabanditaOption: D

specify the desired name after the field name

alanalanalanOption: A

A. By renaming the fields with the “rename” command after the transforming command. e.g. “stats count by ComputerName | rename count AS total_count” good reference : https://gist.github.com/ag-michael/4fc4e4ae7a8226dcb679261f18a3500d

silva222222Option: A

The correct answer is A. By renaming the fields with the “rename” command after the transforming command. For example, “stats count by ComputerName | rename count AS total_count”. This allows you to rename fields after performing transforming commands like table, chart, or stats, enabling you to customize the field names as needed for clarity or consistency in your analysis.

kangaruOption: A

D may be correct, but the example 'stats count (as) totalcount by ComputerName' works only on 'stats' and 'chart'. 'Table' however, does not support using 'as' to rename field on the fly. However, with '| rename input as output' works for all table, chart and stats, which sufficiently satisfy the success criteria of the question.

gr23Option: A

A, You rename after the transform command. The results of the transform command are "renamed" to what you specify, This doesn't affect sub-queries and stat analysis

Jimmy390Option: D

Because you are using transforming commands, definitely D, check the example queries here: https://www.reddit.com/r/crowdstrike/comments/tz5obg/20220408_cool_query_friday_scoring_user_logon/