NinadPatil
Contributor
Contributor

log entry repeated thousands of times

Hi All,

I am new to log insights. We recently configured log insight and fed some logs to it and it seems like it is reading the same log line again and again. So we tested with API. I fired just one instance and it made more than 800 entries in 5 mins. Any pointers to check what setting might be wrong?

Attaching screenshot.

Thanks and Regards,

Ninad Patil

Labels (2)
Reply
0 Kudos
daphnissov
Immortal
Immortal

How are you doing this? If it's from a source file, are you certain it isn't logged that many times?

Reply
0 Kudos
NinadPatil
Contributor
Contributor

Hi,

Thanks for the response.

The screenshot that I have attached if from an API call. I called the log insight ingesting event only once and it made 800 + entries.

Reply
0 Kudos
daphnissov
Immortal
Immortal

Hi, can you share the API call you made? I can validate on my end.

Reply
0 Kudos
NinadPatil
Contributor
Contributor

Here you go:

URL and Auth details as per your environment.

My URL: https://{host:port} /api/v1/events/ingest/0

Method: Post

Data:

{

  "events": [{

    "fields": [

      {"name": "Environment", "content": "EnvC"},

      {"name": "PositionalField", "startPosition": 6, "length": 7}

    ],

    "text": "Ninad's API Entry",

    "timestamp": 1396622879241

  }]

}

Reply
0 Kudos
daphnissov
Immortal
Immortal

And were you using a specific REST client to send that POST?

Reply
0 Kudos
NinadPatil
Contributor
Contributor

Yes, we use a tool called as webMethods. But we tested through Postman as well. Same result.

We also created one log file with just one line in it and it was also replicated thousands of time.

Reply
0 Kudos