SPLK-1002 Exam QuestionsBrowse all questions from this exam

SPLK-1002 Exam - Question 102


Consider the following search run over a time range of last 7 days:

index=web sourcetype=access_combined | timechart avg(bytes) by product_name

Which option is used to change the default time span so that results are grouped into 12 hour intervals?

Show Answer
Correct Answer: AB

To change the default time span in a Splunk 'timechart' command so that results are grouped into 12-hour intervals, you use the 'span' argument. The correct syntax for specifying a 12-hour interval is 'span=12h'. This tells the 'timechart' command to aggregate the data in 12-hour bins. Therefore, the appropriate option is 'span=12h'.

Discussion

6 comments
Sign in to comment
foxx99Option: B
Jan 10, 2023

Timechart requires the argument `span`, not `timespan`. As well, you must specify the unit of time (example 3h or 5m) with this argument so the only option is `span=12h`. https://docs.splunk.com/Documentation/SCS/current/SearchReference/TimechartCommandExamples

SolventCourseisSCAM
Jan 14, 2023

there is nothing in the link. Are you sure the answer is span=12h ? I passed the exam and I clicked the timespan=12h

SolventCourseisSCAM
Jan 14, 2023

correcting my typo >> I clicked the timespan=12

yukilee
Jan 22, 2023

I can’t find a reference about timespan on Timechart documentation.

yaman778
Feb 23, 2023

https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference I guess he sent a wrong one to you. But the result should be “span =12h”. The syntax of bin options should be [span=<log-span>|span=<span-length>|span=<snap-to-time>]. And congratulations you passed the examination. https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Timechart#Span_options/Timechart#Span_options

Jayce1Option: B
Feb 2, 2023

Answer is B. Argument is span. Tested live.

asaraliOption: B
May 29, 2023

span is correct. Who selects the answers here? Many answers are wrong.

HarrysaOption: B
Apr 8, 2023

I agree with B you will use Span not Timespan!

Dree_DoggOption: B
Aug 16, 2023

span=12h

SCARODJOption: B
Feb 27, 2024

As many have already voted, plus Enterprise updated reference https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timechart More specifically #Span_options "timespan" does not exist and "Timescale unit[s]" is required.