Git Product home page Git Product logo

Comments (10)

prabhatsharma avatar prabhatsharma commented on June 8, 2024

Can you provide us more info on what your VRL looks like and some sample data. We need to be able to reproduce the issue in order to help.

from openobserve.

RVaidhy avatar RVaidhy commented on June 8, 2024

Hi Prabhatsharma,

Thanks for the reply.

https://playground.vrl.dev/?state=eyJwcm9ncmFtIjoiIyBQYXJzZSBIVFRQIHN0YXR1cyBjb2RlIGludG8gbG9jYWwgdmFyaWFibGVcbmh0dHBfc3RhdHVzX2NvZGUgPSBwYXJzZV9pbnQhKC5odHRwX3N0YXR1cylcblxuIyBBZGQgc3RhdHVzXG5pZiBodHRwX3N0YXR1c19jb2RlID49IDQwMCAmJiBodHRwX3N0YXR1c19jb2RlIDw9IDQwNSB7XG4gICAgZGVsKC4pXG59XG5pZiAoLnJlcXVlc3RfVVJMICE9IG51bGwpIFxue1xuICAgIGlmIGNvbnRhaW5zKHN0cmluZyEgKC5yZXF1ZXN0X1VSTCksIFwiL2FwaS9zeXN0ZW0vaGVhcnRiZWF0XCIpIHtcbiAgICAgICAgZGVsKC4pXG4gICAgfSBlbHNlIHtcbiAgICBcbiAgICAgICAgLnJlcV91cmxfc3BsaXQsZXJyb3IxPXNwbGl0KC5yZXF1ZXN0X1VSTCwgXCIvXCIpXG4gICAgICAgIC5tYWluID0gLnJlcV91cmxfc3BsaXRbMV1cbiAgICAgICAgLm1haW5fc3BsaXQsZXJyb3IyPXNwbGl0KC5tYWluLCBcIi1cIilcbiAgICAgICAgLnZhbDE9Lm1haW5fc3BsaXRbMF1cbiAgICAgICAgLnZhbDI9Lm1haW5fc3BsaXRbMl1cblxuICAgICAgICBkZWwoLnJlcV91cmxfc3BsaXQpXG4gICAgICAgIGRlbCgubWFpbl9zcGxpdClcblxuICAgIH1cbn0iLCJldmVudCI6eyJ0aW1lc3RhbXAiOiIyMDIzLTA4LTIzVDEwOjQ5OjU5LjQwOVRaIiwiaWQiOiIzMnFxamhhc2QzNHEzNG4iLCJ1c2VybmFtZSI6ImFub255bW91cyIsInJlcXVlc3RfbWV0aG9kIjoiR0VUIiwicmVxdWVzdF9VUkwiOiIvQ09ERS1HRU5FUklDLVRFU1QvYXBwbGljYXRpb24tMS5sb2cuanNvbiIsImFnZW50IjoiSmF2YSIsImh0dHBfc3RhdHVzIjoiMjIwIn0sImlzX2pzb25sIjpmYWxzZSwiZXJyb3IiOm51bGx9

Please look at the sample event and the VRL that we have created. As expected it produces the result.

The FluentD agent will push the data from our EC2 server and it will be similar to the input event that I have used for this process. Please help us.

Thanks,
R Vaidhy

from openobserve.

RVaidhy avatar RVaidhy commented on June 8, 2024

when we try any sample code inside the VRL editor, I receive the following error "Error: Search SQL execute error.
"

from openobserve.

RVaidhy avatar RVaidhy commented on June 8, 2024

Additionally , if I execute any if condition code for example I if run the below code, I get " Error: Search SQL execute error".

What I tried inside the VRL,

if (.request_user_aget == null) {
.opetations="SYSTEMS CALL"

}

Even this statement fails with the SQL execute error.

from openobserve.

prabhatsharma avatar prabhatsharma commented on June 8, 2024

this is a bug. We will take it up.

from openobserve.

oasisk avatar oasisk commented on June 8, 2024

@RVaidhy can you try below :

if (.request_user_aget == null) {
.opetations="SYSTEMS CALL"
}
.

Make sure you have . in end which returns the modified record , let us know if it fails

from openobserve.

RVaidhy avatar RVaidhy commented on June 8, 2024

Hi Oasisk,

Nice to hear from you and thanks for letting us know. Let me test and update you in short.

from openobserve.

RVaidhy avatar RVaidhy commented on June 8, 2024

Hi Oasisk,

We are good with the solution provided. Thanks so much. I am closing this ticket now.

from openobserve.

hengfeiyang avatar hengfeiyang commented on June 8, 2024

@oasisk We should allow the user input function like VRL playground, the last . should be optional because many users test it in vrl playground and then copy it to OpenObserve.

from openobserve.

oasisk avatar oasisk commented on June 8, 2024

added . at the end the function, closing

from openobserve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.