Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

escape apostrophe in attribute #132

Open
badsector3 opened this issue Mar 9, 2018 · 3 comments
Open

escape apostrophe in attribute #132

badsector3 opened this issue Mar 9, 2018 · 3 comments
Assignees
Labels

Comments

@badsector3
Copy link

Hi.

I try to pass multiline to lwrp-prospector.yml which looks like this:
           multiline_pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
Instead I am getting in lwrp-prospector.yml: 
       multiline_pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}"

How can I get multiline_pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}' to be written into prospector.yml?
I tried on filebeat 0.4.9 and 1.4.0 - the same output.

@vkhatri vkhatri self-assigned this Mar 12, 2018
@badsector3
Copy link
Author

Hi. Any updates on this?

@vkhatri vkhatri added the bug label Apr 9, 2018
@vkhatri
Copy link
Owner

vkhatri commented Apr 9, 2018

@badsector3 I will take a look.

@vkhatri
Copy link
Owner

vkhatri commented Apr 19, 2018

Looks like that is the default behavior of to_yaml. Perhaps there is a way to define string type to use single quote.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants