mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
updated osquery autocomplete to v4.7.0 schema (#95741)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
9c21f41da9
commit
d6370f4e51
3 changed files with 3 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
@ -20,7 +20,7 @@ let osqueryTables: TablesJSON | null = null;
|
|||
export const getOsqueryTables = () => {
|
||||
if (!osqueryTables) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
osqueryTables = normalizeTables(require('./osquery_schema/v4.6.0.json'));
|
||||
osqueryTables = normalizeTables(require('./osquery_schema/v4.7.0.json'));
|
||||
}
|
||||
return osqueryTables;
|
||||
};
|
||||
|
|
|
@ -15,7 +15,7 @@ interface DestField {
|
|||
|
||||
run(
|
||||
async ({ flags }) => {
|
||||
const schemaPath = path.resolve('../../public/editor/osquery_schema/');
|
||||
const schemaPath = path.resolve('./public/editor/osquery_schema/');
|
||||
const schemaFile = path.join(schemaPath, flags.schema_version as string);
|
||||
const schemaData = await require(schemaFile);
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue