feat(integrations): fixed source
This commit is contained in:
parent
93be4b4ff1
commit
24653af5e2
1 changed files with 2 additions and 2 deletions
|
|
@ -136,13 +136,13 @@ func (es *elasticsearch) Request(c *client) error {
|
|||
doc := hit.(map[string]interface{})
|
||||
source := doc["_source"].(map[string]interface{})
|
||||
|
||||
if _, ok := esResp["message"]; !ok {
|
||||
if _, ok := source["message"]; !ok {
|
||||
log.Printf("message not found in doc \n%v\n", doc)
|
||||
c.errChan <- fmt.Errorf("message not found in doc '%v' ", doc)
|
||||
continue
|
||||
}
|
||||
|
||||
if _, ok := esResp["utc_time"]; !ok {
|
||||
if _, ok := source["utc_time"]; !ok {
|
||||
log.Printf("utc_time not found in doc \n%v\n", doc)
|
||||
c.errChan <- fmt.Errorf("utc_time not found in doc '%v' ", doc)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue