Log viewer

Examples

Basic

1Copying system trust bundle
2Waiting for port :6443 to be released.
3I0223 20:04:25.084507 1 loader.go:379] Config loaded from file: /etc/kubernetes/static-pod-resources/configmaps/kube-apiserver-cert-syncer-kubeconfig/kubeconfig
4Copying termination logs to "/var/log/kube-apiserver/termination.log"
5I0223 20:04:25.087543 1 main.go:124] Touching termination lock file "/var/log/kube-apiserver/.terminating"
6I0223 20:04:25.088797 1 main.go:182] Launching sub-process "/usr/bin/hyperkube kube-apiserver --openshift-config=/etc/kubernetes/static-pod-resources/configmaps/config/config.yaml --advertise-address=10.0.171.12 -v=2 --permit-address-sharing"
7Flag --openshift-config has been deprecated, to be removed
8
9I0223 20:04:25.238681 17 plugins.go:84] Registered admission plugin "authorization.openshift.io/RestrictSubjectBindings"
10I0223 20:04:25.238763 17 plugins.go:84] Registered admission plugin "image.openshift.io/ImagePolicy"
11I0223 20:04:25.238775 17 plugins.go:84] Registered admission plugin "route.openshift.io/IngressAdmission"

With complex toolbar

1Copying system trust bundle
2Waiting for port :6443 to be released.
3I0223 20:04:25.084507 1 loader.go:379] Config loaded from file: /etc/kubernetes/static-pod-resources/configmaps/kube-apiserver-cert-syncer-kubeconfig/kubeconfig
4Copying termination logs to "/var/log/kube-apiserver/termination.log"
5I0223 20:04:25.087543 1 main.go:124] Touching termination lock file "/var/log/kube-apiserver/.terminating"
6I0223 20:04:25.088797 1 main.go:182] Launching sub-process "/usr/bin/hyperkube kube-apiserver --openshift-config=/etc/kubernetes/static-pod-resources/configmaps/config/config.yaml --advertise-address=10.0.171.12 -v=2 --permit-address-sharing"
7Flag --openshift-config has been deprecated, to be removed
8
9I0223 20:04:25.238681 17 plugins.go:84] Registered admission plugin "authorization.openshift.io/RestrictSubjectBindings"
10I0223 20:04:25.238763 17 plugins.go:84] Registered admission plugin "image.openshift.io/ImagePolicy"
11I0223 20:04:25.238775 17 plugins.go:84] Registered admission plugin "route.openshift.io/IngressAdmission"

With header component

5019 lines
1Copying system trust bundle
2Waiting for port :6443 to be released.
3I0223 20:04:25.084507 1 loader.go:379] Config loaded from file: /etc/kubernetes/static-pod-resources/configmaps/kube-apiserver-cert-syncer-kubeconfig/kubeconfig
4Copying termination logs to "/var/log/kube-apiserver/termination.log"
5I0223 20:04:25.087543 1 main.go:124] Touching termination lock file "/var/log/kube-apiserver/.terminating"
6I0223 20:04:25.088797 1 main.go:182] Launching sub-process "/usr/bin/hyperkube kube-apiserver --openshift-config=/etc/kubernetes/static-pod-resources/configmaps/config/config.yaml --advertise-address=10.0.171.12 -v=2 --permit-address-sharing"
7Flag --openshift-config has been deprecated, to be removed
8
9I0223 20:04:25.238681 17 plugins.go:84] Registered admission plugin "authorization.openshift.io/RestrictSubjectBindings"
10I0223 20:04:25.238763 17 plugins.go:84] Registered admission plugin "image.openshift.io/ImagePolicy"
11I0223 20:04:25.238775 17 plugins.go:84] Registered admission plugin "route.openshift.io/IngressAdmission"

With ANSI color logs

1Running "clean:all" (clean) task
2>> 0 paths cleaned.
3
4Running "copy:base" (copy) task
5Created 188 directories, copied 1433 files
6
7Running "copy:app" (copy) task
8Created 40 directories, copied 233 files
9
10Running "processhtml:dist" (processhtml) task
11

Props

LogViewer

*required
NameTypeDefaultDescription
datastring | string[]String or String Array data being sent by the consumer
fastRowHeightEstimationLimitnumberThe maximum char length for fast row height estimation. For wrapped lines in Chrome based browsers, lines over this length will actually be rendered to the dom and measured to prevent a bug where one line can overlap another.
footerReact.ReactNodeComponent rendered in the log viewer console window footer
hasLineNumbersbooleanFlag to enable or disable line numbers on the log viewer.
hasToolbarbooleanConsumer may turn off the visibility on the toolbar
headerReact.ReactNodeComponent rendered in the log viewer console window header
heightnumber | stringHeight of the log viewer.
initialIndexWidthnumberThe width of index when the line numbers is shown, set by char numbers
innerRefReact.RefObject<any>Forwarded ref
isTextWrappedbooleanFlag indicating that log viewer is wrapping text or not
itemCountnumberNumber of rows to display in the log viewer
loadingContentReact.ReactNodeContent displayed while the log viewer is loading
onScroll({ scrollDirection, scrollOffset, scrollOffsetToBottom, scrollUpdateWasRequested }: { scrollDirection: 'forward' | 'backward'; scrollOffset: number; scrollOffsetToBottom: number; scrollUpdateWasRequested: boolean; }) => voidCallback function when scrolling the window. scrollDirection is the direction of scroll, could be 'forward'|'backward'. scrollOffset and scrollOffsetToBottom are the offset of the current position to the top or the bottom. scrollUpdateWasRequested is false when the scroll event is cause by the user interaction in the browser, else it's true. @example onScroll={({scrollDirection, scrollOffset, scrollOffsetToBottom, scrollUpdateWasRequested})=>{}}
overScanCountnumberRows rendered outside of view. The more rows are rendered, the higher impact on performance
scrollToRownumberRow index to scroll to
theme'dark' | 'light'Flag indicating that log viewer is dark themed
toolbarReact.ReactNodeToolbar rendered in the log viewer header
useAnsiClassesbooleanFlag to enable or disable the use of classes (instead of inline styles) for ANSI coloring/formatting.
widthnumber | stringWidth of the log viewer.

LogViewerSearch

*required
NameTypeDefaultDescription
minSearchCharsNo type info1
placeholderNo type info'Search'
We use cookies on our websites to deliver our online services. Details about how we use cookies and how you may disable them are set out in our Privacy Statement. By using this website you agree to our use of cookies.