Skip to the content.

Structure Dialog


This component contains the dialog that allows users to search for occurrences of a structure (i.e., pattern) in the opened log and navigate through the results of the search.

Relations to other components

Props

Name Type Description
logHeaderColumns Header[] An array containing the headers displayed in the StructureTable.
logHeaderColumnsTypes StructureHeaderColumnType[] An array indicating containing the types for each headers in the StructureTable.
logSelectedRows string[][] The selected rows from the LogView
currentStructureMatchingIndex number \| null The index of the highlighted occurrence of a structure (i.e., the result of Structure Matching).
numberOfMatches number The number of results from the Structure Matching.
onClose function A function that indicates to the parent component that the dialog should be closed.
onStructureUpdate function A function that clears the selection of rows from the LogView.
onNavigateStructureMatches function A function that updates the currentStructureMatchingIndex
onMatchStructure function A function passing a regular expression of the structure definition to be run over the log.

State

Name Type Initial Value Description
wildcards Wildcard[] [] Keeps track of all wildcards used in structure definition displayed in the Structure Table.
structureEntries StructureEntry[] structureEntries Keeps track of all entries in the structure definition displayed in the StructureTable.
isRemovingStructureEntries boolean false Is set to true while the user is removing entries from the structure definition.
isStructureMatching boolean false Is set to true after the user searches for structure occurrences. It is then reset to false when the structure definition is modified.
structureHeaderColumnsTypes StructureHeaderColumnType[] logHeaderColumnsTypes (prop) Keeps track of which columns are used during the structure matching (e.g., Timestamp is not used by default).

Functions

Component lifecycle functions