Comments (4)
For your clarification, We are using openobserve-v0.5.1-linux-amd64-musl.tar. Please help !
from openobserve.
@RVaidhy please upgrade to v0.5.2 , to use functions with more lines.
Also please note , when you ingest data to openobserve all fields names are in small case , for eg :
{"_timestamp":1694143686586724,"agent":"Java","http_status":"220","id":"32qqjhasd34q34n","operation":"USER CALL","request_method":"GET","request_url":"/api/cargo-local/GYQV_MATANO_SAMPLE_REPO/sample.json","request_user_agent":"jfrog-mission-control/erere","timestamp":"2023-08-23T10:49:59.409TZ","username":"anonymous"}
Hence your function needs to be modified to use:
.req_url_split,error1=split(.request_url, "/")
instead of : .req_url_split,error1=split(.request_URL, "/") to
from openobserve.
tested with above mentioned data & function, working fine with fixes
from openobserve.
Hi Oasisk,
Even after applying the fixes that you have mentioned we had that same issue.
To get rid of that we have used the following method. Basically match_array expects regex formatted data. So from a full string if you extract a sub-string and wanted to validate that specific value against array or something we may need to follow the below options.
Say you have a predefined list of values and you wnated to compare the extracted value with that. This is our scenario.
request_url_array = ["sample","values","tobe","inserted","here"]
Now, from logs we have got one field like below.
.extrated_substring = string!(.url)
Convert that to regex as below,
.urlInfoRegex = to_regex(.extrated_substring)?? r''
Now pass this to match_array.
.isUrlExist = match_array(.request_url_array,.urlInfoRegex)
So in our case, if we want to validate a specific value against an array of values we shall refer the above method. It may be useful to someone. Thats why sharing here for ref. Thanks!
from openobserve.
Related Issues (20)
- Permissions- Giving List/Get permission still gives error 403 to user role for settings
- Dashboard- Data available for 2 weeks but on setting date time under General settings -the dashboard appears blank HOT 1
- Stream settings- On re-adding the user defined schema to the list, settings UI appears in loading state HOT 2
- Streams - Multiple entries of the new added field start appearing if this added stream is selected under user defined schema HOT 1
- Logs- navigating from empty stream to stream with data displays infinite loading HOT 1
- Simply encoding SQL in base64 for transmission will not bypass the WAF gateway HOT 10
- Report issues
- Logs- Searching for absolute date range is giving error on UI but search API giving proper results HOT 1
- Permission related issues for admin user
- Dashboard Reports
- Logs: Count mismatch on UI for a selected field values HOT 1
- Multiple field selection in stream settings HOT 1
- Metrics- performance optimisation - Streams selection not displayed but results appear HOT 1
- Streams- User defined schema does not appear in all list when field added manually HOT 1
- Search around not working when query with limit is added
- Logs: Query editor appears white in dark mode (check all pages where monaco editor added) HOT 1
- Traces: Results appears blank HOT 1
- Adding a new field under user defined schema does not appear in _all HOT 1
- Dashboard: Invalid sql syntax error displayed on a valid query and disappears on page refresh
- Could not create member user in OSS version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openobserve.