You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the --auth argument to specify the user credentials when a custom elasticsearch url is already defined using the argument --url, an AuthenticationException arises.
Expected Behaviour
Makelogs should start generating events
Actual Behaviour
Makelogs throws an AuthenticationException.
$ makelogs --url https://localhost:9200 --auth user:password
unknown ping error StatusCodeError: Authentication Exception
at respond (/usr/local/lib/node_modules/@elastic/makelogs/node_modules/elasticsearch/src/lib/transport.js:349:15)
at checkRespForFailure (/usr/local/lib/node_modules/@elastic/makelogs/node_modules/elasticsearch/src/lib/transport.js:306:7)
at HttpConnector.<anonymous> (/usr/local/lib/node_modules/@elastic/makelogs/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
at IncomingMessage.wrapper (/usr/local/lib/node_modules/@elastic/makelogs/node_modules/lodash/lodash.js:4991:19)
at IncomingMessage.emit (node:events:529:35)
at endReadableNT (node:internal/streams/readable:1400:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
status: 401,
displayName: 'AuthenticationException',
path: '/',
query: {},
body: false,
statusCode: 401,
response: '',
wwwAuthenticateDirective: 'Basic realm="security" charset="UTF-8", Bearer realm="security", ApiKey',
toString: [Function (anonymous)],
toJSON: [Function (anonymous)]
}
Workaround
Including the user credentials directly in the --url argument works fine in this case.
$ makelogs --url https://user:password@host:port
The text was updated successfully, but these errors were encountered:
Using the
--auth
argument to specify the user credentials when a custom elasticsearch url is already defined using the argument--url
, anAuthenticationException
arises.Expected Behaviour
Makelogs should start generating events
Actual Behaviour
Makelogs throws an
AuthenticationException
.Workaround
Including the user credentials directly in the
--url
argument works fine in this case.The text was updated successfully, but these errors were encountered: