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
Add in the HTTP Method + path to the outgoing response log #700
Comments
Two approaches:
|
|
Depends. If you log ingestion already provides indexing capabilities that support correlation, then it can copy over fields from one log event to another. Scalyr does this, for example.
You wouldn't use linear search with a nested loop join. If you index your incoming requests by correlation id you can change this to a hash join.
There is no reason to stop using that.
There is no need for inheritance here (personal note: with very few exceptions inheritance is almost never needed). You can do fine with composition. Just create a My suggestion: Use
change the second var requestOutput = request.getMethod() + " " + request.getPath();
var responseOutput = formatter.format(correlation, response);
writer.write(correlation, requestOutput + "\n" + responseOutput); |
That's the thing though... I'm not using Scalyr.
I was just speaking in the abstract - I'm not a sumo logic expert and I'm not sure if it's even possible. Not everyone in my company is an expert on log search and tend to just search by basic terms.
What about the |
If your logging ecosystem only supports grep-like features without any kind of indexing, then yes the default setup won't be fast when querying/searching.
What about
|
For a related discussion see also #691 |
I guess that could work. Though I'd prefer to put it after the first line instead of the first. |
For now you'd need to split by newline, insert and join with newlines again. For the |
I'm closing this for now because I believe that |
It would be nice if the HTTP method + path can be output in the response log. A lot of times I'm searching for a specific error response on something like SumoLogic, but when I find the error response I don't know what HTTP method + path was called. I have to write another query to find the corresponding incoming request log.
Can you add in the HTTP method + path to the outgoing logs similar to the way incoming request logs have it?
The text was updated successfully, but these errors were encountered: