File appender for filebeat not working in groovy

Hi All,
i have configured filebeat on my centos machine and it is working fine and now i am trying to use file appender for filebeat using groovy script but it is not creating file. any help will be appericate.

below is the code which i am using in my script for file appender:

static String FILEBEAT_APPENDER_XML = """

service.log/logstash.json





message
%msg%n%ex{25}


logger
%logger{50}


environment
${OPERATIONAL_ENVIRONMENT}
false


host
${HOSTNAME}


thread
%thread
false




@service.log@/logstash.json.%d{yyyy-MM-dd}.%i
1
true

100MB



"""

Sorry @jiten, but it's not entirely clear to me what you are asking for help with. Do you think you could elaborate. Is this a question about Filebeat or about groovy?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.