Extracting details from JSON message.
I have something like this:
{
"message":"2016-06-13T22:37:37.495559000+00:00 INFO 0.0.0.0 User Logged In Successfully distribution=corp location=nil user_id=123",
"meta_hostname":"myhost.hostname.com",
"meta_timestamp":"2016-06-13 22:37:37 +0000",
"meta_source":"app-logs",
"meta_application":"blah"
}
How do I extract the IP address (assuming regex) along with the user_id in a search? I just need those two fields. Thanks. Please sign in to leave a comment.
Comments
1 comment