Below are the sample log files that otel-collector need to send logs to signoz
{"channel":"crm_process_booking_log","log_type":"DEBUG","index_name":"crm_process_booking_log","index_type":"crm_process_booking_log","error_type":0,"message":{"data":{"STEP":"Adding Post Data","post_data":{"customer":[{"relation":"others","age":28,"dob":null,"gender":"F","email":null,"customer_id":"66aff7d8-cd9b-4796-bf17-e66088c3565a","customer_name":"Prena","contact_number":null}],"slot":{"slot_id":"684178718"},"gender":"M","mobile":"6700670875","email":"siddhant.khanna_testi_blr+rahul@acko.tech","state":"26","cityId":"23","latitude":28.5101825,"longitude":77.0682661,"address":"sector 21, gurgaon, Gurgaon, Haryana, 122016","zipcode":"122016","landmark":"home","altmobile":false,"altemail":false,"package":[{"deal_id":["package_216"]}],"customer_calling_number":"6700670875","billing_cust_name":"Rahu","sub_locality":"sector 21, gurgaon, Gurgaon, Haryana, 122016","hard_copy":0,"vendor_booking_id":false,"vendor_billing_user_id":"4rWzYn5NOhEgNPdiVGWiRA","payment_option":"invoice","discounted_price":0,"sample_collected":"n","role_id":0,"search_by":"customer_mobile","channel_partner":"3","channel_partner_user":"5490","booked_source":"api","zip_search":2,"calling_from":"external_api","b2bNewExistingUser":false,"user_id_ajax":"","whatsappconcent":1,"billing_zone_id":"53","zone_id":"53","amzn_trace_id":"Root=1-65c33f1c-29fe535658001b076140677c","billing_cust_city":"gurgaon","billing_cust_city_id":"23","locality":"541","channel_type":"3","channel_user":"5490"},"amzn_trace_id":"Root=1-65c33f1c-29fe535658001b076140677c"},"calling_trace":{"file":"\/var\/www\/newcrm-t25\/application\/controllers\/crmuser\/crmorder.php","line":1227,"function":"addProcessBookingLog","class":"Enterprise_logger"}},"amzn_trace_id":"Root=1-65c33f1c-29fe535658001b076140677c","nginx_request_id":"c93176430784c9dd4e32e35541e6e31a","timestamp":"2024-02-07 13
5812"}
{"channel":"crm_process_booking_log","log_type":"DEBUG","index_name":"crm_process_booking_log","index_type":"crm_process_booking_log","error_type":0,"message":{"data":{"STEP":"Booking Form Validation","booking_form_validate_reponse":{"status":true,"message":"validate successfully.","resCode":"RES0001"},"amzn_trace_id":"Root=1-65c33f1c-29fe535658001b076140677c"},"calling_trace":{"file":"\/var\/www\/newcrm-t25\/application\/controllers\/crmuser\/crmorder.php","line":1233,"function":"addProcessBookingLog","class":"Enterprise_logger"}},"amzn_trace_id":"Root=1-65c33f1c-29fe535658001b076140677c","nginx_request_id":"c93176430784c9dd4e32e35541e6e31a","timestamp":"2024-02-07 13
5812"}
{"channel":"crm_process_booking_log","log_type":"DEBUG","index_name":"crm_process_booking_log","index_type":"crm_process_booking_log","error_type":0,"message":{"data":{"STEP":"gross_margin","gross_margin_key":{"active":"on"},"amzn_trace_id":"Root=1-65c33f1c-29fe535658001b076140677c"},"calling_trace":{"file":"\/var\/www\/newcrm-t25\/application\/controllers\/crmuser\/crmorder.php","line":2046,"function":"addProcessBookingLog","class":"Enterprise_logger"}},"amzn_trace_id":"Root=1-65c33f1c-29fe535658001b076140677c","nginx_request_id":"c93176430784c9dd4e32e35541e6e31a","timestamp":"2024-02-07 13
5812"}
{"channel":"crm_process_booking_log","log_type":"DEBUG","index_name":"crm_process_booking_log","index_type":"crm_process_booking_log","error_type":0,"message":{"data":{"STEP":"slot_details","slotDetail":{"stm_id":"684178718","time":"14
3000","end_time":"15
3000","locality_id":0,"booking_id":0,"freeze_count":0,"date":"2024-02-07","user_id":0,"collection_center_id":0,"b2b_zone_id":0,"zone_id":53,"sample_type_id":1,"isavailable":1,"isactive":1,"set_name":"set5","is_peak_hours":0,"source":"crm","order_group_id":0,"old_zone_id":0,"samplecollector_id":0,"old_set_name":"","phlebo_name":"","assign_time":"0000-00-00 00
0000","freeze":0,"freeze_date":"0000-00-00 00
0000","payment":0,"locusStatus":0,"lat":"","lng":"","dropTaskStatus":0,"autoAssignStatus":0,"pickup_type":"home","service_id":0,"consultation_id":0,"channel_type":0,"channel_user":0,"vendor_user_id":"","created_at":"2024-02-05 12
5610","updated_at":"2024-02-05 12
5610","reference_stm_id":0,"phlebo_id":0},"amzn_trace_id":"Root=1-65c33f1c-29fe535658001b076140677c"},"calling_trace":{"file":"\/var\/www\/newcrm-t25\/application\/controllers\/crmuser\/crmorder.php","line":2112,"function":"addProcessBookingLog","class":"Enterprise_logger"}},"amzn_trace_id":"Root=1-65c33f1c-29fe535658001b076140677c","nginx_request_id":"c93176430784c9dd4e32e35541e6e31a","timestamp":"2024-02-07 13
5812"}
and below are the sample logs that are already coming in signoz
{
"attributes_bool": {},
"attributes_float64": {},
"attributes_int64": {},
"attributes_string": {
"body": "{\"time\":\"2024-02-08T16
2907+05:30\",\"request_id\":\"cde731db9d09b894c46382f9f45050fe\",\"http_x_amzn_trace_id\":\"Root=1-65c4b3fb-35323611678cfe8754f895da\",\"http_x_forwarded_for\":\"182.74.128.251\",\"remote_addr\":\"182.74.128.251\",\"http_user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36\",\"http_host\":\"
erp.healthians.com\",\"request_method\":\"GET\",\"request_uri\":\"/manage/bookings\",\"status\":\"200\",\"request_time\":\"0.053\",\"request_length\":\"892\",\"body_bytes_sent\":\"12952\",\"upstream_addr\":\"unix:/run/php/php8.2-fpm.sock\",\"hostname\":\"
erp003.echl.in\"}",
"body_bytes_sent": "12952",
"hostname": "
erp003.echl.in",
"http_host": "
erp.healthians.com",
"http_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
"http_x_amzn_trace_id": "Root=1-65c4b3fb-35323611678cfe8754f895da",
"http_x_forwarded_for": "182.74.128.251",
"log.file.path": "/var/log/nginx/erp.healthians.com.access.log",
"remote_addr": "182.74.128.251",
"request_id": "cde731db9d09b894c46382f9f45050fe",
"request_length": "892",
"request_method": "GET",
"request_time": "0.053",
"request_uri": "/manage/bookings",
"status": "200",
"time": "2024-02-08T16
2907+05:30",
"upstream_addr": "unix:/run/php/php8.2-fpm.sock"
},
"body": "{\"time\":\"2024-02-08T16
2907+05:30\",\"request_id\":\"cde731db9d09b894c46382f9f45050fe\",\"http_x_amzn_trace_id\":\"Root=1-65c4b3fb-35323611678cfe8754f895da\",\"http_x_forwarded_for\":\"182.74.128.251\",\"remote_addr\":\"182.74.128.251\",\"http_user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36\",\"http_host\":\"
erp.healthians.com\",\"request_method\":\"GET\",\"request_uri\":\"/manage/bookings\",\"status\":\"200\",\"request_time\":\"0.053\",\"request_length\":\"892\",\"body_bytes_sent\":\"12952\",\"upstream_addr\":\"unix:/run/php/php8.2-fpm.sock\",\"hostname\":\"
erp003.echl.in\"}",
"id": "2blH0qDloNxl3ksakEPmK2ekv5F",
"resources_string": {},
"severity_number": 0,
"severity_text": "",
"span_id": "",
"trace_flags": 0,
"trace_id": "",
"timestamp": "2024-02-08T10
5907Z"
}
{
"attributes_bool": {},
"attributes_float64": {},
"attributes_int64": {},
"attributes_string": {
"body": "{\"time\":\"2024-02-08T16
2907+05:30\",\"request_id\":\"958735cb01cd48374a67343958107b41\",\"http_x_amzn_trace_id\":\"Root=1-65c4b3fb-12f272295303dead3de5f108\",\"http_x_forwarded_for\":\"14.97.111.234\",\"remote_addr\":\"14.97.111.234\",\"http_user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36\",\"http_host\":\"
erp.healthians.com\",\"request_method\":\"POST\",\"request_uri\":\"/service/ticket_management/updateTicketStatus\",\"status\":\"200\",\"request_time\":\"0.327\",\"request_length\":\"2924\",\"body_bytes_sent\":\"95\",\"upstream_addr\":\"unix:/run/php/php8.2-fpm.sock\",\"hostname\":\"
erp003.echl.in\"}",
"body_bytes_sent": "95",
"hostname": "
erp003.echl.in",
"http_host": "
erp.healthians.com",
"http_user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
"http_x_amzn_trace_id": "Root=1-65c4b3fb-12f272295303dead3de5f108",
"http_x_forwarded_for": "14.97.111.234",
"log.file.path": "/var/log/nginx/erp.healthians.com.access.log",
"remote_addr": "14.97.111.234",
"request_id": "958735cb01cd48374a67343958107b41",
"request_length": "2924",
"request_method": "POST",
"request_time": "0.327",
"request_uri": "/service/ticket_management/updateTicketStatus",
"status": "200",
"time": "2024-02-08T16
2907+05:30",
"upstream_addr": "unix:/run/php/php8.2-fpm.sock"
},
"body": "{\"time\":\"2024-02-08T16
2907+05:30\",\"request_id\":\"958735cb01cd48374a67343958107b41\",\"http_x_amzn_trace_id\":\"Root=1-65c4b3fb-12f272295303dead3de5f108\",\"http_x_forwarded_for\":\"14.97.111.234\",\"remote_addr\":\"14.97.111.234\",\"http_user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36\",\"http_host\":\"
erp.healthians.com\",\"request_method\":\"POST\",\"request_uri\":\"/service/ticket_management/updateTicketStatus\",\"status\":\"200\",\"request_time\":\"0.327\",\"request_length\":\"2924\",\"body_bytes_sent\":\"95\",\"upstream_addr\":\"unix:/run/php/php8.2-fpm.sock\",\"hostname\":\"
erp003.echl.in\"}",
"id": "2blH0qDloNxl3ksakEPmK2ekv5D",
"resources_string": {},
"severity_number": 0,
"severity_text": "",
"span_id": "",
"trace_flags": 0,
"trace_id": "",
"timestamp": "2024-02-08T10
5907Z"
}