Hi All,
I am trying to ingest the python script output using exec input plugin filter but i am facing issue while performing split operation on message. I am not sure how can I split into fields, below sample output which is receiving under message :
Output/Message field
{"required_role":"OPERATOR","user_role":"DESIGNER","accepted":true,"request_url":"/catalog_service_settings","rest_params":{},"original_time":637841834485391604,"severity":"INFO","audit_time":637841834485391604}
{"required_role":"OPERATOR","user_role":"DESIGNER","accepted":true,"request_url":"/catalog_service_settings","rest_params":{},"original_time":637841839892273074,"severity":"INFO","audit_time":637841839892273074}
{"required_role":"OPERATOR","user_role":"DESIGNER","accepted":true,"request_url":"/catalog_service_settings","rest_params":{},"original_time":637841840485632613,"severity":"INFO","audit_time":637841840485632613}
{"required_role":"OPERATOR","user_role":"DESIGNER","accepted":true,"request_url":"/catalog_service_settings","rest_params":{},"original_time":637841845977496183,"severity":"INFO","audit_time":637841845977496183}
{"required_role":"OPERATOR","user_role":"DESIGNER","accepted":true,"request_url":"/catalog_service_settings","rest_params":{},"original_time":637841846485656787,"severity":"INFO","audit_time":637841846485656787}
Current Logstash Pipeline :
input {
exec {
command => "python /usr/share/logstash/scripts/qlik_2.py"
interval => 30
}
}
filter {
json {
source => "message"
skip_on_invalid_json => true
tag_on_failure => ["failed_json"]
}
split {
field => "message"
}
}
Could you please help me with the same.
@Badger @elastic_team Kindly assist how can ingest data in respective fields in index.