fleet/server/service
Victor Vrantchan 8291119067
use json.RawMessage for result logs (#1636)
Initially fleet decoded the incoming JSON sent to the log endpoint.
Then the log event would be written to a log writer by calling json.Encoder{}.Encode.
Re-encoding logs is lossy; whenever a new field is sent by osqueryd we don't keep up with them.
Instead of caring about the content of the OsqueryResultLog, fleet will now write all log results
exactly as sent to the server by osqueryd.

Closes #1632
Closes #1615
2017-11-18 19:59:32 -05:00
..
testdata add endpoint to serve the kolide certificate back to the user (#1025) 2017-01-20 14:32:10 -05:00
endpoint_appconfig_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_appconfig.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_campaigns.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_certificate.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_change_email.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_decorators_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_decorators.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_fim.go Added FIM support (#1548) 2017-08-18 10:37:33 -05:00
endpoint_hosts.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_import_config_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_import_config.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_invites.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_labels.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_middleware_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_middleware.go removing license code (#1551) 2017-09-01 10:42:46 -06:00
endpoint_options_test.go Fix Issue where saving same option value errs. (#1433) 2017-03-30 17:03:48 -05:00
endpoint_options.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_osquery.go use json.RawMessage for result logs (#1636) 2017-11-18 19:59:32 -05:00
endpoint_packs.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_queries.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_scheduled_queries.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_sessions.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_setup.go removing license code (#1551) 2017-09-01 10:42:46 -06:00
endpoint_targets.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
endpoint_users_test.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
endpoint_users.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
frontend.go provide context for ServeFrontend 500 errors (#1349) 2017-03-03 19:49:55 -05:00
handler_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
handler.go add remote ip address to service logs (#1635) 2017-11-18 18:41:23 -05:00
http_auth_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
http_auth.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging_appconfig.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging_decorators.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging_email_change.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
logging_fim.go Added FIM support (#1548) 2017-08-18 10:37:33 -05:00
logging_hosts.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging_import_config.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging_invites.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging_labels.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging_options.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging_osquery.go use json.RawMessage for result logs (#1636) 2017-11-18 19:59:32 -05:00
logging_packs.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging_scheduled_queries.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging_sessions.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging_users.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
logging.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
metrics_appconfig.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
metrics_change_email.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
metrics_decorators.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
metrics_fim.go Added FIM support (#1548) 2017-08-18 10:37:33 -05:00
metrics_import_config.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
metrics_invites.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
metrics_labels.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
metrics_options.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
metrics_sessions.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
metrics_users.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
metrics.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_appconfig_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_appconfig.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_campaigns.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_certificate_test.go add endpoint to serve the kolide certificate back to the user (#1025) 2017-01-20 14:32:10 -05:00
service_certificate.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
service_decorators.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_errors.go removing license code (#1551) 2017-09-01 10:42:46 -06:00
service_fim_test.go Added FIM support (#1548) 2017-08-18 10:37:33 -05:00
service_fim.go Added FIM support (#1548) 2017-08-18 10:37:33 -05:00
service_hosts_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_hosts.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_import_config_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_import_config.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_invites_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_invites.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_labels_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_labels.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_options.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_osquery_test.go use json.RawMessage for result logs (#1636) 2017-11-18 19:59:32 -05:00
service_osquery.go use json.RawMessage for result logs (#1636) 2017-11-18 19:59:32 -05:00
service_packs_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_packs.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_queries_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_queries.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_scheduled_queries_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_scheduled_queries.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_sessions_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_sessions.go Fixed leaking http client (#1628) 2017-11-16 09:53:42 -07:00
service_targets_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_targets.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_test.go Changed default osquery logging behavior 2017-04-03 16:48:50 -05:00
service_users_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service_users.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
service.go Fixed leaking http client (#1628) 2017-11-16 09:53:42 -07:00
transport_appconfig.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
transport_campaigns.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_change_email.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_decorators.go use stdlib context in go-kit methods (#1454) 2017-03-29 11:46:52 -04:00
transport_error.go removing license code (#1551) 2017-09-01 10:42:46 -06:00
transport_fim.go Added FIM support (#1548) 2017-08-18 10:37:33 -05:00
transport_hosts.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_import_config.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
transport_invites_test.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_invites.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_labels_test.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_labels.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_options.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
transport_osquery_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
transport_osquery.go close request bodies (#1613) 2017-11-14 18:06:42 -05:00
transport_packs_test.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_packs.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_queries_test.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_queries.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_scheduled_queries_test.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_scheduled_queries.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_sessions_test.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_sessions.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
transport_setup.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_targets_test.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_targets.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
transport_users_test.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport_users.go Update go-kit to 0.4.0 (#1411) 2017-03-15 08:55:30 -07:00
transport.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
util_test.go removing license code (#1551) 2017-09-01 10:42:46 -06:00
validation_app_config_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
validation_app_config.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
validation_decorators_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
validation_decorators.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
validation_import_config.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
validation_invites.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
validation_options.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
validation_sessions.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
validation_setup.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
validation_users.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00