メインコンテンツまでスキップ
Sumo Logic Japanese

Lab 7 - Format Results

In order to to chart your data, sometimes you will need to format results to fit your desired chart needs.

 

  1. Create a chart that displays error codes by minute, over the last 15 minutes. Transposing your original results will allow you to create a table with time in your rows and status code in your columns.

_sourceCategory=Labs/Apache/Access

| parse "HTTP/1.1\" * " as status_code

| timeslice by 1m

| count by _timeslice, status_code

| transpose row _timeslice column status_code

  • この記事は役に立ちましたか?