New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[reporter] [elasticsearch] Unable to index some logs #1077

Closed
brasseld opened this Issue Feb 13, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@brasseld
Member

brasseld commented Feb 13, 2018

[2018-02-08 16:39:35,630][DEBUG][action.bulk              ] [qp3sboinfsai10] [gravitee-2018.02.08][0] failed to execute bulk item (index) index {[gravitee-2018.02.08][health][197a04e1-0f5f-4997-ba04-e10f5f29979d], source[{ "gateway":"c08db881-e26f-409b-8db8-81e26ff09bba", "api":"ff869580-da66-41d9-8695-80da6641d938", "endpoint":"gk", "available":false, "response-time":5, "success":false, "state":0, "steps": [ {"name": "default-step", "success":false, "request": { "uri":"http://10.250.144.120/uaa/uaa/health", "method":"GET" ,"headers":{ "accept": [ "application/json" ] , "Authorization": [ "Bearer eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJub3JhdXRvLW9hdXRoMiIsImV4cCI6MTUxNTUwOTM0NiwianRpIjoiRDMyai1rQ0tncWdPMC1pWFFBR0xSQSIsImlhdCI6MTUxNTQ3MzM0Niwic3ViIjoic3VwZXJ2aXNpb24iLCJ1c2VyX25hbWUiOiJzdXBlcnZpc2lvbiIsInNjb3BlIjpbInJlYWQiXSwiYXVkIjpbImN1c3RvbWVyLXNlcnZpY2UtdjMiLCJjdXN0b21lcnZlaGljbGUtc2VydmljZS12MyIsIm91cmFnYW4tZmFjYWRlLXYxIiwib3VyYWdhbi1mYWNhZGUtdjIiLCJteW5vcmF1dG8tZmFjYWRlLXYxIiwiYWNjb3VudC1zZXJ2aWNlLXYxIiwiYWNjb3VudC1zZXJ2aWNlLXYyIiwiYmlsbC1zZXJ2aWNlLXYyIiwiYmlsbC1zZXJ2aWNlLXYzIiwiY29ubmVjdGVkdmVoaWNsZS1zZXJ2aWNlLXYyIiwibG95YWx0eS1z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dXRvdmVyLXYyIiwiYXV0aG9yaXphdGlvbi1zZXJ2ZXIiLCJwaWxvdC1wcm94eSIsInByb2QtcHJveHkiLCJ1YWEiLCJ1bml0NFBhcmFtLXNlcnZpY2UtdjEiLCJvZmZlci1zZWFyY2gtdjIiXSwiY2xpZW50X2lkIjoic3VwZXJ2aXNpb24iLCJ0eXBlIjoiY2xpZW50In0.Qj_gBSLcSu0wQjwnscK4LFxXByfvcuEzYOjZCUlzeghr11UI37dO-LAUTaoox-QcNOQjsO9rEOBctvuDDpMLwQlTcWPC6hOj74PZjyngSrBmDgPWI9WeeJoH2S9rmMehV3ZfSvBRM9ZI788nmM9yeg-g8TM-daQzesZAFvygJnDDOSy62lGr4CRj1JnAmk997HIjVI-cBE8pDrQC3Q-7wObKB92AExI77zeOdOvFNOM0VGvKS-LD0ug6FXnS7qpghGRl6EivutbeGwUJmF3GNnxIcfKfJyQ4Y0kVyBvUBr0-D0nRvEHGstqM_tsKK53mq1oCTBleExPb3_AjQLAZ6g" ] } }, "response": { "status":401 ,"body":"{\"error\":\"invalid_token\",\"error_description\":\"Invalid access token: eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJub3JhdXRvLW9hdXRoMiIsImV4cCI6MTUxNTUwOTM0NiwianRpIjoiRDMyai1rQ0tncWdPMC1pWFFBR0xSQSIsImlhdCI6MTUxNTQ3MzM0Niwic3ViIjoic3VwZXJ2aXNpb24iLCJ1c2VyX25hbWUiOiJzdXBlcnZpc2lvbiIsInNjb3BlIjpbInJlYWQiXSwiYXVkIjpbImN1c3RvbWVyLXNlcnZpY2UtdjMiLCJjdXN0b21lcnZlaGljbGUtc2VydmljZS12MyIsIm91cmFnYW4tZmFjYWRlLXYxIiwib3VyYWdhbi1mYWNhZGUtdjIiLCJteW5vcmF1dG8tZmFjYWRlLXYxIiwiYWNjb3VudC1zZXJ2aWNlLXYxIiwiYWNjb3VudC1zZXJ2aWNlLXYyIiwiYmlsbC1zZXJ2aWNlLXYyIiwiYmlsbC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CJ2ZWhpY2xlLXYxIiwidmVoaWNsZS12MiIsIm9mZmVyLWF1dG92ZXItdjEiLCJvZmZlci1hdXRvdmVyLXYyIiwiYXV0aG9yaXphdGlvbi1zZXJ2ZXIiLCJwaWxvdC1wcm94eSIsInByb2QtcHJveHkiLCJ1YWEiLCJ1bml0NFBhcmFtLXNlcnZpY2UtdjEiLCJvZmZlci1zZWFyY2gtdjIiXSwiY2xpZW50X2lkIjoic3VwZXJ2aXNpb24iLCJ0eXBlIjoiY2xpZW50In0.Qj_gBSLcSu0wQjwnscK4LFxXByfvcuEzYOjZCUlzeghr11UI37dO-LAUTaoox-QcNOQjsO9rEOBctvuDDpMLwQlTcWPC6hOj74PZjyngSrBmDgPWI9WeeJoH2S9rmMehV3ZfSvBRM9ZI788nmM9yeg-g8TM-daQzesZAFvygJnDDOSy62lGr4CRj1JnAmk997HIjVI-cBE8pDrQC3Q-7wObKB92AExI77zeOdOvFNOM0VGvKS-LD0ug6FXnS7qpghGRl6EivutbeGwUJmF3GNnxIcfKfJyQ4Y0kVyBvUBr0-D0nRvEHGstqM_tsKK53mq1oCTBleExPb3_AjQLAZ6g\"}" ,"headers":{ "X-B3-TraceId": [ "f7fe0a897bf1d1af" ] , "Access-Control-Allow-Headers": [ "x-requested-with" ] , "X-B3-Sampled": [ "1" ] , "Date": [ "Thu, 08 Feb 2018 15:39:35 GMT" ] , "Connection": [ "close" ] , "WWW-Authenticate": [ "Bearer realm="authorization-server", error="invalid_token", error_description="Invalid access token: eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJub3JhdXRvLW9hdXRoMiIsImV4cCI6MTUxNTUwOTM0NiwianRpIjoiRDMyai1rQ0tncWdPMC1pWFFBR0xSQSIsImlhdCI6MTUxNTQ3MzM0Niwic3ViIjoic3VwZXJ2aXNpb24iLCJ1c2VyX25hbWUiOiJzdXBlcnZpc2lvbiIsInNjb3BlIjpbInJlYWQiXSwiYXVkIjpbImN1c3RvbWVyLXNlcnZpY2UtdjMiLCJ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N0b2NrLXYyIiwib2ZmZXItdGlwb2ZmLXYxIiwib2ZmZXItdGlwb2ZmLXYyIiwib2ZmZXItdHlyZXNlbGVjdG9yLXYxIiwib2ZmZXItdHlyZXNlbGVjdG9yLXYyIiwib2ZmZXItdjEiLCJvZmZlci12MiIsIm9mZmVyLXhzZWxsaW5nLXYxIiwib2ZmZXIteHNlbGxpbmctdjIiLCJ2ZWhpY2xlLXYxIiwidmVoaWNsZS12MiIsIm9mZmVyLWF1dG92ZXItdjEiLCJvZmZlci1hdXRvdmVyLXYyIiwiYXV0aG9yaXphdGlvbi1zZXJ2ZXIiLCJwaWxvdC1wcm94eSIsInByb2QtcHJveHkiLCJ1YWEiLCJ1bml0NFBhcmFtLXNlcnZpY2UtdjEiLCJvZmZlci1zZWFyY2gtdjIiXSwiY2xpZW50X2lkIjoic3VwZXJ2aXNpb24iLCJ0eXBlIjoiY2xpZW50In0.Qj_gBSLcSu0wQjwnscK4LFxXByfvcuEzYOjZCUlzeghr11UI37dO-LAUTaoox-QcNOQjsO9rEOBctvuDDpMLwQlTcWPC6hOj74PZjyngSrBmDgPWI9WeeJoH2S9rmMehV3ZfSvBRM9ZI788nmM9yeg-g8TM-daQzesZAFvygJnDDOSy62lGr4CRj1JnAmk997HIjVI-cBE8pDrQC3Q-7wObKB92AExI77zeOdOvFNOM0VGvKS-LD0ug6FXnS7qpghGRl6EivutbeGwUJmF3GNnxIcfKfJyQ4Y0kVyBvUBr0-D0nRvEHGstqM_tsKK53mq1oCTBleExPb3_AjQLAZ6g"" ] , "Access-Control-Allow-Origin": [ "*" ] , "X-B3-SpanId": [ "f7fe0a897bf1d1af" ] , "Content-Type": [ "application/json;charset=UTF-8" ] , "X-Application-Context": [ "gatekeeper:QUA:80" ] , "Access-Control-Allow-Methods": [ "POST, PUT, GET, DELETE" ] } }, "response-time":5, "message": "Assertion not validated: #response.status == 200" } ], "@timestamp":"2018-02-08T15:39:35.138Z" }]}
MapperParsingException[failed to parse]; nested: JsonParseException[Unexpected character ('a' (code 97)): was expecting comma to separate Array entries
 at [Source: org.elasticsearch.common.io.stream.InputStreamStreamInput@1109e7f5; line: 1, column: 5100]];
    at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:156)
    at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:309)
    at org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:580)
    at org.elasticsearch.index.shard.IndexShard.prepareIndexOnPrimary(IndexShard.java:559)
    at org.elasticsearch.action.index.TransportIndexAction.prepareIndexOperationOnPrimary(TransportIndexAction.java:211)
    at org.elasticsearch.action.index.TransportIndexAction.executeIndexRequestOnPrimary(TransportIndexAction.java:223)
    at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:327)
    at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:120)
    at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:68)
    at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryPhase.doRun(TransportReplicationAction.java:648)
    at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
    at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:279)
    at org.elasticsearch.action.support.replication.TransportReplicationAction$PrimaryOperationTransportHandler.messageReceived(TransportReplicationAction.java:271)
    at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:77)
    at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:376)
    at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('a' (code 97)): was expecting comma to separate Array entries
 at [Source: org.elasticsearch.common.io.stream.InputStreamStreamInput@1109e7f5; line: 1, column: 5100]
    at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1702)
    at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:558)
    at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:456)
    at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:761)
    at org.elasticsearch.common.xcontent.json.JsonXContentParser.nextToken(JsonXContentParser.java:53)
    at org.elasticsearch.index.mapper.DocumentParser.parseObject(DocumentParser.java:266)
    at org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:308)
    at org.elasticsearch.index.mapper.DocumentParser.parseObject(DocumentParser.java:328)
    at org.elasticsearch.index.mapper.DocumentParser.parseObject(DocumentParser.java:254)
    at org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:308)
    at org.elasticsearch.index.mapper.DocumentParser.parseObject(DocumentParser.java:328)
    at org.elasticsearch.index.mapper.DocumentParser.parseObject(DocumentParser.java:254)
    at org.elasticsearch.index.mapper.DocumentParser.parseObjectOrField(DocumentParser.java:308)
    at org.elasticsearch.index.mapper.DocumentParser.parseObject(DocumentParser.java:328)
    at org.elasticsearch.index.mapper.DocumentParser.parseNonDynamicArray(DocumentParser.java:416)
    at org.elasticsearch.index.mapper.DocumentParser.parseArray(DocumentParser.java:381)
    at org.elasticsearch.index.mapper.DocumentParser.parseObject(DocumentParser.java:256)
    at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:124)
    ... 18 more

brasseld added a commit to gravitee-io-community/gravitee-reporter-elasticsearch that referenced this issue Feb 13, 2018

@brasseld brasseld self-assigned this Feb 13, 2018

@brasseld brasseld modified the milestones: 1.14.0, 1.13.3 Feb 13, 2018

NicolasGeraud added a commit to gravitee-io-community/gravitee-reporter-elasticsearch that referenced this issue Feb 16, 2018

GGui pushed a commit to GGui/gravitee-reporter-elasticsearch that referenced this issue Feb 28, 2018

GGui pushed a commit to GGui/gravitee-reporter-elasticsearch that referenced this issue Apr 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment