Hi! I am needing help with the rest api schema.
I want to make my program send the data to elastic but that it can be seen as is this example.
The code that I had thought to use was this
{
"mappings": {
"properties": {
"date": {
"type": "date",
"format": "yyyy-MM-d HH:mm:ss,SSSZ"
},
"info": {
"properties": {
"app": {
"type": "text"
},
"type": {
"type": "text"
},
"runner": {
"type": "text"
},
"message": {
"type": "text"
}
}
},
"error": {
"properties": {
"app": {
"type": "text"
},
"type": {
"type": "text"
},
"runner": {
"type": "text"
},
"message": {
"type": "text"
}
}
},
"debug": {
"properties": {
"app": {
"type": "text"
},
"type": {
"type": "text"
},
"runner": {
"type": "text"
},
"message": {
"type": "text"
}
}
},
"warning": {
"properties": {
"app": {
"type": "text"
},
"type": {
"type": "text"
},
"runner": {
"type": "text"
},
"message": {
"type": "text"
}
}
},
"fatal": {
"properties": {
"app": {
"type": "text"
},
"type": {
"type": "text"
},
"runner": {
"type": "text"
},
"message": {
"type": "text"
}
}
}
}
}
}
But it didn't work out. I thought it was the parametry of the URL, but neither. I'm not understanding much of the api docs either.
If you can help me with this, I would be very grateful!