Hi thhis is my first time working with kibana. I am creating a simple kibana dashboard for my java application. I have 3 endpoints and in my kibana dashboard, I will create panels to store 5xx and 4xx status code from my application.
My issue is that if I have a path variable in my url, how would my kibana query look like?
I am writing it this way and it does not work (doesn't fetch any results):
kubernetes.container_name: "v1/myapp" AND uri: "v1/deposits/([a-zA-Z0-9]*)/output"
Please help me to rewrite the regex portion.
🙏
You should be able to click "Edit Query DSL" and there you can use this regex query.
Hope it helps!
Related
I need to filter my search by the host.
I was able to do this in the CloudSearch Dashboard under "Run a Test Search" (See picture)
Awesome! That was easy. Except not awesome. I'm going crazy trying to get that to work with my actual search endpoint.
This I would assume should give me the same results as the dashboard test query, but it isn't filtering them at all.
https://search.endpoint/?q.parser=structured&q='hello%20test'&fq=host:'example.com'
I've tried using the Structured Query language, Lucene, and DisMax for query parsing, but I can't get it working on any of them.
https://search.endpoint/?q.parser=lucene&q=hello%20test&fq=host:'example.com'
https://search.endpoint/?q.parser=dismax&q=hello%20test&fq=host:'example.com'
What am I doing wrong?
I didn't make one thing super clear. I am using a custom domain instead of the default endpoint.
Turns out I only had a small handful of query string parameters set up in my API in API Gateway.
Once I added the additional query strings to the API I was able to make the queries.
I also learned that you can generate your test search as a URL by clicking on the view raw: JSON button. That has helped speed things up a lot!
I've tried to create a regex for the following checkout page:
https://checkout.returnonart.com/pay/cs_live_b1sHcLQqcRrQV8C7LXDzSScPgXBp3X4nPkWyCixPl2dj5pEy9oKiq8Y4cO#fidkdWxOYHwnPyd1blppbHNgWnE9dkJGZG59R3BtbzVSMkBNcm1kb2xycjU1YTBLbUR1ZGEnKSdjd2poVmB3c2B3Jz9xd3BgKSdpZHxqcHFRfHVgJz8naHBpcWxabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl
The first part is static until /cs_live_
This part is dynamic:
b1sHcLQqcRrQV8C7LXDzSScPgXBp3X4nPkWyCixPl2dj5pEy9oKiq8Y4cO#fidkdWxOYHwnPyd1blppbHNgWnE9dkJGZG59R3BtbzVSMkBNcm1kb2xycjU1YTBLbUR1ZGEnKSdjd2poVmB3c2B3Jz9xd3BgKSdpZHxqcHFRfHVgJz8naHBpcWxabHFgaCcpJ2BrZGdpYFVpZGZgbWppYWB3dic%2FcXdwYHgl
So far I have this: ^checkout\.returnonart\.com\/pay\/cs_live_?([A-Za-z0-9\-]*) but it doesn't work, if I verify this goal via Google Analytics.
Try this pattern because probably the cause is the domain in the regex. The domain is not present normally in pagePath in Google Analytics:
\/pay\/cs_live_
thank you very much for your support. Since I found a workaround (button click event), the issue is solved.
There are region specific URLs for various websites like google.co.in or google.co.uk for google.com, So for the major sites like google, facebook, linkedin, I want to replace their region specific URLs with all region URL.
For example for google, it should be redirected to https://www.google.com/webhp?pws=0&gl=us&gws_rd=cr.
The solution which I was trying:
1) Take the part of URL google.co.in(using regex) and replace it with google.com (using re:replace)
2) For storing of initial and replacement URL, I'm thinking to use orddict, where {key,value}={"...//google.co.region/...","...//google.com/..."}, region can be in or uk or any other, so how to take that region into consideration if I'm using orddict as keystore ?
But I'm not sure how to actually implement this in erlang or whether my proposed solution will work properly ?
I'm doing this for my messenger app, so whenever user enters URL, it doesn't show preview of URL where my server is located, instead atleast show it in english.(as per now ,for facebook, my app shows preview in russian)
There's built-in regex module in Erlang: http://erlang.org/doc/man/re.html
As for your solution, it really feels like a crutch for functionality better achieved with smart networking. Or you can try making requests for a preview on client's side, not server, for example.
I'm trying to get a contact in Highrise CRM using the following API:
/people/search.xml?email=emailID
But the results are not related to the email of the contact I asked for. Am I missing something here?
Take a look at the API docs here:
https://github.com/basecamp/highrise-api/blob/master/sections/people.md#search-people
Looks like your query string doesn't match the criteria format.
Also, try running curl to see what the response is and post it, might help to clarify. :)
API that works:
/people/search.xml?criteria[email]=emailID
I have an iPhone app for a forum which also has a limited Google Analytics reporting.
This app reports the page views in following form:
/forum/67
/thread/29036
etc...
The numbers above represent forum and thread ID's
I am trying to set an Advanced filter, which will rewrite/report the page views as following form:
http://www.mysite.com/forum-67.html
http://www.mysite.com/thread-29036.html
Can someone please assist me in creating an Advanced Google Analytics filter which will enable me to see URL's so they can be live and send to correct page.
Obviously there will be a need for some RegExp matches, but I cannot get around it.