Replies: 1 comment
-
I've transferred this to an enhancement request: #1493 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be possible to look at including additional information in the raw request hash table for custom request logging? Specifically, it would be great if we could have the hostname and the query strings portion of the request included. Additionally, it would be great if there was an option to use UTC in the raw hash table as well.
Here is an example of what I mean:
@{
Host = '10.10.0.3'
RfcUserIdentity = '-'
User = '-'
Date = '2018-06-14T20:23:52Z'
Request = @{
Method = 'GET'
Hostname = 'https://api.domain.com'
Resource = '/api/users'
QueryStrings = 'query1=vlaue&query2=value'
Protocol = "HTTP/1.1"
Referrer = '-'
Agent = ''
}
Response = @{
StatusCode = '200'
StautsDescription = 'OK'
Size = '9001'
}
}
I am currently using a custom logging script block to change the date format to UTC and then convert the raw hash table to compressed JSON then writing that to a newline-delimited JSON logfile, which is then picked up by the Elastic Agent to ingest the request logs. This works quite well but it would save some processing if the date format could be in UTC format already and the additional information would be helpful to be included.
Beta Was this translation helpful? Give feedback.
All reactions