mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Co-authored-by: Alejandro Fernández Gómez <alejandro.fernandez@elastic.co>
This commit is contained in:
parent
2c5e4b8292
commit
86a668f68e
1 changed files with 12 additions and 15 deletions
|
@ -6,11 +6,11 @@
|
|||
*/
|
||||
|
||||
import url from 'url';
|
||||
import { stringify } from 'querystring';
|
||||
|
||||
import React, { memo, useMemo, useState, useCallback, useEffect } from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { encode } from 'rison-node';
|
||||
import { stringify } from 'query-string';
|
||||
import {
|
||||
EuiFlexGroup,
|
||||
EuiFlexItem,
|
||||
|
@ -170,20 +170,17 @@ export const AgentLogsUI: React.FunctionComponent<AgentLogsProps> = memo(({ agen
|
|||
http.basePath.prepend(
|
||||
url.format({
|
||||
pathname: '/app/logs/stream',
|
||||
search: stringify(
|
||||
{
|
||||
logPosition: encode({
|
||||
start: state.start,
|
||||
end: state.end,
|
||||
streamLive: false,
|
||||
}),
|
||||
logFilter: encode({
|
||||
expression: logStreamQuery,
|
||||
kind: 'kuery',
|
||||
}),
|
||||
},
|
||||
{ sort: false, encode: false }
|
||||
),
|
||||
search: stringify({
|
||||
logPosition: encode({
|
||||
start: state.start,
|
||||
end: state.end,
|
||||
streamLive: false,
|
||||
}),
|
||||
logFilter: encode({
|
||||
expression: logStreamQuery,
|
||||
kind: 'kuery',
|
||||
}),
|
||||
}),
|
||||
})
|
||||
),
|
||||
[http.basePath, state.start, state.end, logStreamQuery]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue