Hey there, can any help me resolve this problem,
I am parsing Cloudflare audit logs via its API, I am putting here my code chunk of .conf file for Logstash plugin input,filter and output. Also, attaching a error screenshot at the end of the message.
I understand it is a regex error, but I want to understand if there is any way I can pass "-" (hyphen).
# The # character at the beginning of a line indicates a comment. Use
# comments to describe your configuration.
input {
http_poller
{
urls => {
method => "GET"
cloudflare => " https://api.cloudflare.com/client/v4/user/audit_logs"
{
headers => {
X-Auth-Email => "email@redacted.com"
X-Auth-Key => "api_key"
Content-Type => "application/json"
}
}
}
}
}
# optional.
filter {
json
{
source => "message"
}
}
output {
stdout { codec => rubydebug }
}
I changed it with double quotes, Now it is giving [FATAL] 2020-11-10 06:32:38.962 [LogStash::Runner] runner - The given configuration is invalid. Reason: undefined method get for #<Java::OrgLogstashConfigIrImperative::PluginStatement:0x3108d1e1>
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.