grafana/public/app/features/explore
Olof Bourghardt f4f2c197ae
Explore: Add switch to restructure logs for better readability (#36324)
* Add prettifyLogMessage to select components in test file

* Change entry depending on the value of prettifyLogMessage

* Add prettifyLogMessage to state

* Fix merge conflict

* Fixe bug where the log message wasn't parsed as JSON

* Implement function to restructure all logs

* Change elstic image version back to 7.7.1

* Add showCommonLabels that was missing

* Remove comment

* Put import of getParser together with the other imports

* Logs: fix bug where message isn't restructured if it contains ANSI code

* Logs: change label for switch to Restructure

* Remove unnecessary file

* Logs: added divider before switch component

* Add dividers between the different log options

* Remove unintentional changes

* Explore: remove dividers in log settings

* Explore: refactor for LogRowMessage for better readability

* remove unnecessary change

* Logs: fix bug where logs aren't restructured if they have highlights

* Logs: minor refactoring

* Logs: use memoizeOne to prevent parsing on every re-render

* Logs: calculate needsHilight inside renderLogMessage instead of outside

* Logs: fix bug where logs aren't prettified when wrap logs is disabled

* Explore: change name to prettify

* Remove console.log

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* Dashboards: add switch to prettify log messages to the Logs fields

* Logs: make prettify only work for JSON logs

* Logs: fix bug with tests for logs

* Update public/app/plugins/panel/logs/module.tsx

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2021-07-16 15:08:47 +02:00
..
__mocks__ Chore: Bumps prettier version for new typescript syntax support (#20463) 2019-11-19 13:59:39 +00:00
__snapshots__ Theme: Change white base in dark theme (#35564) 2021-06-11 17:33:56 +02:00
flotgraph Theme: Move displayProcessor & fieldOverrides & visualizations to use new theme model (#33502) 2021-04-29 12:44:06 +02:00
RichHistory Overlays: Style tweaks to modal & drawer overlays (#33251) 2021-04-22 10:57:10 +02:00
slate-plugins/prism Chore: fix jsdoc desc and return (#28383) 2020-10-20 07:35:45 -07:00
state Explore: Fix running of log queries with shift-enter shortcut (#36600) 2021-07-12 17:54:17 +02:00
TraceView Tracing: add way to configure trace to logs start and end time (#34995) 2021-07-12 11:25:41 +02:00
utils Access Control: Add fine-grained access control to explore (#35883) 2021-07-02 14:43:12 +02:00
AdHocFilter.tsx Theming: Make new theme exposed by ThemeContext and make new theme include v1 for compatability (to pass to useTheme) (#33207) 2021-04-21 14:25:43 +02:00
AdHocFilterField.test.tsx Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
AdHocFilterField.tsx Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
ElapsedTime.tsx React: refactor away from unsafe lifecycle methods (#21291) 2020-05-18 18:03:29 +02:00
ErrorContainer.test.tsx CloudWatch Logs: Adjusts CloudWatch Logs timeout logic (#26621) 2020-09-07 14:41:36 +01:00
ErrorContainer.tsx Theme: Fixes to time picker calendar & variable dropdowns & more (#33407) 2021-04-27 15:13:08 +02:00
Explore.test.tsx Explore: props automatically inferred from mapStateToProps and mapDispatchToProps (#35885) 2021-06-22 11:43:13 +02:00
Explore.tsx Explore: props automatically inferred from mapStateToProps and mapDispatchToProps (#35885) 2021-06-22 11:43:13 +02:00
ExploreDrawer.test.tsx Explore: Adds query inspector drawer to explore (#26698) 2020-08-06 16:22:54 +01:00
ExploreDrawer.tsx Theme: Renames new theme model from GrafanaThemeV2 to just GrafanaTheme (#33619) 2021-05-03 09:45:54 +02:00
ExploreGraphNGPanel.tsx Explore: props automatically inferred from mapStateToProps and mapDispatchToProps (#35885) 2021-06-22 11:43:13 +02:00
ExplorePaneContainer.tsx Routing NG: Replace Angular routing with react-router (#31463) 2021-03-10 18:03:36 +01:00
ExploreQueryInspector.test.tsx Explore: Add error tab and rename query tab in inspector (#33412) 2021-05-05 17:30:24 +02:00
ExploreQueryInspector.tsx Explore: Automatically infer props from mapStateToProps (#35932) 2021-06-22 08:24:19 +02:00
ExploreTimeControls.tsx Use either moment objects (for absolute times in the datepicker) or string (for relative time) (#33315) 2021-04-27 09:55:22 +02:00
ExploreToolbar.tsx Explore: Fix running of log queries with shift-enter shortcut (#36600) 2021-07-12 17:54:17 +02:00
JSONViewer.tsx Chore: Enable eslint-plugin-react partial rules (#29428) 2020-12-01 16:19:52 +01:00
LiveLogs.test.tsx Explore/Logs: Escaping of incorrectly escaped log lines (#31352) 2021-03-03 18:32:27 +01:00
LiveLogs.tsx Buttons: replace usage of .btn classnames (#33226) 2021-04-23 10:06:42 +02:00
LiveTailButton.tsx Emotion: Upgrades emotion from 10 to 11 and updates all import paths (#32541) 2021-04-01 14:15:23 +02:00
Logs.tsx Explore: Add switch to restructure logs for better readability (#36324) 2021-07-16 15:08:47 +02:00
LogsContainer.tsx Explore: Remove nested auto sizer and pass width from main Explore component (#35919) 2021-06-18 14:21:54 +02:00
LogsMetaRow.tsx Explore: Refactor deduplication, hiding of logs and Logs component (#33531) 2021-04-29 18:26:30 +02:00
LogsNavigation.test.tsx Explore: Add caching for queries run from logs navigation (#34297) 2021-05-24 13:56:48 +02:00
LogsNavigation.tsx Explore: Add caching for queries run from logs navigation (#34297) 2021-05-24 13:56:48 +02:00
LogsNavigationPages.test.tsx Explore: Polish UI of logs navigation (#33910) 2021-05-11 22:10:45 +02:00
LogsNavigationPages.tsx Explore: Polish UI of logs navigation (#33910) 2021-05-11 22:10:45 +02:00
MetaInfoText.test.tsx Explore: adds MetaInfoText tests 2020-01-30 12:02:50 +00:00
MetaInfoText.tsx Theming: Make new theme exposed by ThemeContext and make new theme include v1 for compatability (to pass to useTheme) (#33207) 2021-04-21 14:25:43 +02:00
NoDataSourceCallToAction.tsx Theming: Make new theme exposed by ThemeContext and make new theme include v1 for compatability (to pass to useTheme) (#33207) 2021-04-21 14:25:43 +02:00
NodeGraphContainer.test.tsx NodeGraph: Don't check for preferredVisualisationType (#35116) 2021-06-03 12:48:26 +02:00
NodeGraphContainer.tsx Explore: refactor redux-connected components (#36027) 2021-06-24 08:21:19 +02:00
QueryEditor.tsx Chore: Reduce number of strict typescript errors (#34595) 2021-06-01 13:47:29 +01:00
QueryRow.test.tsx Explore: Refactor QueryRow to use ConnectedProps (#36604) 2021-07-12 15:30:24 +02:00
QueryRow.tsx Explore: Refactor QueryRow to use ConnectedProps (#36604) 2021-07-12 15:30:24 +02:00
QueryRowActions.test.tsx @grafana/ui: Replace various icons using Icon component (#23442) 2020-04-12 22:20:02 +02:00
QueryRowActions.tsx @grafana/ui: Various smaller Icon updates (#23588) 2020-04-16 13:49:58 +02:00
QueryRows.tsx Explore/Refactor: Simplify URL handling (#29173) 2021-02-12 21:33:26 +01:00
QueryStatus.test.tsx Chore: Reorg packages (#20111) 2019-10-31 10:48:05 +01:00
QueryStatus.tsx React: refactor away from unsafe lifecycle methods (#21291) 2020-05-18 18:03:29 +02:00
ResponseErrorContainer.test.tsx Explore: Fix issue when some query errors were not shown (#32212) 2021-03-23 11:58:09 +01:00
ResponseErrorContainer.tsx Explore: Fix issue when some query errors were not shown (#32212) 2021-03-23 11:58:09 +01:00
ReturnToDashboardButton.test.tsx Access Control: Add fine-grained access control to explore (#35883) 2021-07-02 14:43:12 +02:00
ReturnToDashboardButton.tsx Access Control: Add fine-grained access control to explore (#35883) 2021-07-02 14:43:12 +02:00
RunButton.test.tsx ButtonSelect & RefreshPicker: Rewrite of components to use new emotion based ToolbarButton & Menu (#30510) 2021-01-23 08:17:50 +01:00
RunButton.tsx ButtonSelect & RefreshPicker: Rewrite of components to use new emotion based ToolbarButton & Menu (#30510) 2021-01-23 08:17:50 +01:00
SecondaryActions.test.tsx Explore: Adds query inspector drawer to explore (#26698) 2020-08-06 16:22:54 +01:00
SecondaryActions.tsx Emotion: Upgrades emotion from 10 to 11 and updates all import paths (#32541) 2021-04-01 14:15:23 +02:00
TableContainer.test.tsx Explore: Remove not running query for collapsed elements (#27026) 2020-09-22 17:31:42 +02:00
TableContainer.tsx Explore: Fix unexpected error when loading Explore 2021-06-24 16:16:23 +02:00
Time.tsx React: refactor away from unsafe lifecycle methods (#21291) 2020-05-18 18:03:29 +02:00
TimeSyncButton.test.tsx Transformations: enable transformations reordering (#27197) 2020-08-31 08:47:27 +02:00
TimeSyncButton.tsx TimeRangePicker: Updates components to use new ToolbarButton & ButtonGroup (#30570) 2021-01-25 14:01:54 +01:00
useLiveTailControls.ts Eslint: no-duplicate-imports rule (bump grafana-eslint-config) (#30989) 2021-02-11 13:45:25 +01:00
Wrapper.test.tsx Explore: page title indicates which datasource is being used (#36699) 2021-07-13 14:21:49 +02:00
Wrapper.tsx Explore: page title indicates which datasource is being used (#36699) 2021-07-13 14:21:49 +02:00