Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add m= in front of logplex_stats logging so it's easier to group in splunk #55

Merged
merged 1 commit into from

3 participants

@freeformz
Owner

splunk

@omarkj
Owner

Looks good. Are we using this data anywhere (and might this change break any of that stuff?)

Owner

Nothing should break if the request filtered by logoplex_stats in the first place as far as I know. this can get a +1 from me.

Owner
@ferd ferd merged commit 1f51ba0 into master
@freeformz
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/logplex_stats.erl
View
10 src/logplex_stats.erl
@@ -152,20 +152,20 @@ start_timer() ->
erlang:start_timer(Time, ?MODULE, flush).
log_stat(UnixTS, #drain_stat{drain_id=DrainId, channel_id=ChannelId, key=Key}, Val) ->
- io:format("logplex_stats ts=~p channel_id=~p drain_id=~p ~p=~p~n",
+ io:format("m=logplex_stats ts=~p channel_id=~p drain_id=~p ~p=~p~n",
[UnixTS, ChannelId, DrainId, Key, Val]);
log_stat(UnixTS, #channel_stat{channel_id=ChannelId, key=Key}, Val) ->
- io:format("logplex_stats ts=~p channel_id=~p ~p=~p~n",
+ io:format("m=logplex_stats ts=~p channel_id=~p ~p=~p~n",
[UnixTS, ChannelId, Key, Val]);
log_stat(UnixTS, #logplex_stat{module=Mod, key=K}, Val) ->
- io:format("logplex_stats ts=~p system module=~p ~200p=~p~n",
+ io:format("m=logplex_stats ts=~p system module=~p ~200p=~p~n",
[UnixTS, Mod, K, Val]);
log_stat(UnixTS, {Class, Key}, Val) ->
- io:format("logplex_stats ts=~p freeform class=~p key=~p count=~p~n",
+ io:format("m=logplex_stats ts=~p freeform class=~p key=~p count=~p~n",
[UnixTS, Class, Key, Val]);
log_stat(UnixTS, Key, Val) when is_atom(Key); is_list(Key) ->
- io:format("logplex_stats ts=~p ~p=~p~n", [UnixTS, Key, Val]).
+ io:format("m=logplex_stats ts=~p ~p=~p~n", [UnixTS, Key, Val]).
Something went wrong with that request. Please try again.