I’m trying to build a SQL Processor with:
SET defaults.topic.autocreate=true;
INSERT INTO auditd_filtered
SELECT STREAM message as _raw, log.file.path as source, host.name as host, "auditd" as sourcetype FROM auditd
WHERE agent.name="fol-linxabbk-tefle"
I’m getting the message: SQL is invalid
.
When I query the same topic in SQL Studio:
SELECT _raw, log.file.path as source, host.name as host, "auditd" as sourcetype FROM auditd
…it works correct and returns me the data. My the payload is in JSON serialization. I notice that Lenses has not been able to infer the schema from the topic, it says:
Primitive type. No schema available.
What am I doing wrong?