我从日志中提取了一个字段,并将其命名为 ---------
beginning of crash
10-21 02:38:31.694 5506-5591/org.researchstack.sampleapp E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: org.researchstack.sampleapp, PID: 5506
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
at org.researchstack.sampleapp.PostTask.doInBackground(SampleApplication.java:103)
at org.researchstack.sampleapp.PostTask.doInBackground(SampleApplication.java:85)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
:
elapsedTime
现在我需要创建一个时间表,用于显示每天的事件数量和... | rex "milisecond([\\\]{1})([\"]):(?<elapsedTime>\d+),"
&gt;事件的数量。 10000
我该怎么做?
答案 0 :(得分:0)
在不了解您的环境的情况下,很难给出准确的命令。但是,这应该可以满足您的需求(可能需要稍加修改):
| timechart count by {events} AS Events, eval(elapsedTime > 10000) AS Long Events span=1d
{events}
将替换为您用于活动的变量名称。您显然可以将Events
和Long Events
列标题重命名为您选择的任何名称。
您还可以将span
从一天更改为您选择的任何时间段。我只包括一天,因为你表示你想要绘制每天的事件数量。
有关您可以使用的各种参数和选项的信息,请参阅Splunk的timechart documentation page。