웹후크 작업을 보호하기 위해 ServiceNow로 이벤트를 보내는 ITSM 작업 변환
참고 항목
2022년 9월부터 ITSM 작업을 사용하여 ServiceNow에 이벤트를 보내는 방식이 지원 중단되는 3년 프로세스가 시작됩니다.
ITSM 커넥터를 새 보안 webhook 통합으로 마이그레이션하려면 보안 webhook 구성 지침을 따릅니다.
ServiceNow와 Azure Log Analytics 작업 영역 간에 작업 항목을 동기화하는 경우(양방향) 아래 단계에 따라 ServiceNow에서 Log Analytics 작업 영역으로 데이터를 가져옵니다.
ServiceNow 인스턴스에서 Log Analytics 작업 영역으로 데이터 끌어오기
Azure Portal에서 소비 논리 앱 워크플로를 만듭니다.
ServiceNow Table API를 사용하여 ServiceNow 인스턴스에서 데이터를 검색하는 HTTP GET 요청을 만듭니다. Table 호출을 사용하여 인시던트를 검색하는 방법의 예를 참조하세요.
ServiceNow 인스턴스의 테이블 목록을 보려면 ServiceNow에서 시스템 정의, 테이블로 이동합니다. 예제 테이블 이름에는
change_request
,em_alert
,incident
,em_event
가 포함됩니다.Logic Apps에서는 2단계에서 만든 GET 요청의 결과에 대한
Parse JSON
작업을 추가합니다.검색된 페이로드에 대한 스키마를 추가합니다. 샘플 페이로드를 사용하여 스키마 기능을 생성할 수 있습니다.
change_request
테이블에 대한 샘플 스키마를 참조하세요.Log Analytics 작업 영역을 만듭니다.
for each
루프를 만들어 API에서 반환된 데이터의 각 행을 Log Analytics 작업 영역의 데이터에 삽입합니다.
이전 단계에서 출력 선택 섹션에서 4단계에서 만든 JSON 구문 분석 작업에서 반환된 데이터 집합을 입력합니다.
루프를 시작하는 집합에서 각 행을 생성합니다.
루프의 마지막 단계에서
Send data
를 사용하여 이러한 값이 있는 데이터를 Log Analytics 작업 영역으로 보냅니다.- 사용자 지정 로그 이름: Log Analytics 작업 영역에 데이터를 저장하는 데 사용하는 사용자 지정 로그의 이름입니다.
- 6단계에서 만든 LA 작업 영역에 대한 연결입니다.
데이터는 Log Analytics 작업 영역의 레거시 사용자 지정 로그 섹션에 표시됩니다.
change_request 테이블에 대한 샘플 JSON 스키마
{
"properties": {
"content": {
"properties": {
"result": {
"items": {
"properties": {
"active": {
"type": "string"
},
"activity_due": {
"type": "string"
},
"additional_assignee_list": {
"type": "string"
},
"approval": {
"type": "string"
},
"approval_history": {
"type": "string"
},
"approval_set": {
"type": "string"
},
"assigned_to": {
"properties": {
"link": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"assignment_group": {
"type": "string"
},
"backout_plan": {
"type": "string"
},
"business_duration": {
"type": "string"
},
"business_service": {
"type": "string"
},
"cab_date": {
"type": "string"
},
"cab_delegate": {
"type": "string"
},
"cab_recommendation": {
"type": "string"
},
"cab_required": {
"type": "string"
},
"calendar_duration": {
"type": "string"
},
"category": {
"type": "string"
},
"change_plan": {
"type": "string"
},
"chg_model": {
"type": "string"
},
"close_code": {
"type": "string"
},
"close_notes": {
"type": "string"
},
"closed_at": {
"type": "string"
},
"closed_by": {
"properties": {
"link": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"cmdb_ci": {
"properties": {
"link": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"comments": {
"type": "string"
},
"comments_and_work_notes": {
"type": "string"
},
"company": {
"type": "string"
},
"conflict_last_run": {
"type": "string"
},
"conflict_status": {
"type": "string"
},
"contact_type": {
"type": "string"
},
"correlation_display": {
"type": "string"
},
"correlation_id": {
"type": "string"
},
"delivery_plan": {
"type": "string"
},
"delivery_task": {
"type": "string"
},
"description": {
"type": "string"
},
"due_date": {
"type": "string"
},
"end_date": {
"type": "string"
},
"escalation": {
"type": "string"
},
"expected_start": {
"type": "string"
},
"follow_up": {
"type": "string"
},
"group_list": {
"type": "string"
},
"impact": {
"type": "string"
},
"implementation_plan": {
"type": "string"
},
"justification": {
"type": "string"
},
"knowledge": {
"type": "string"
},
"location": {
"type": "string"
},
"made_sla": {
"type": "string"
},
"number": {
"type": "string"
},
"on_hold": {
"type": "string"
},
"on_hold_reason": {
"type": "string"
},
"on_hold_task": {
"type": "string"
},
"opened_at": {
"type": "string"
},
"opened_by": {
"properties": {
"link": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"order": {
"type": "string"
},
"outside_maintenance_schedule": {
"type": "string"
},
"parent": {
"type": "string"
},
"phase": {
"type": "string"
},
"phase_state": {
"type": "string"
},
"priority": {
"type": "string"
},
"production_system": {
"type": "string"
},
"reason": {
"type": "string"
},
"reassignment_count": {
"type": "string"
},
"requested_by": {
"properties": {
"link": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"requested_by_date": {
"type": "string"
},
"review_comments": {
"type": "string"
},
"review_date": {
"type": "string"
},
"review_status": {
"type": "string"
},
"risk": {
"type": "string"
},
"risk_impact_analysis": {
"type": "string"
},
"route_reason": {
"type": "string"
},
"scope": {
"type": "string"
},
"service_offering": {
"type": "string"
},
"short_description": {
"type": "string"
},
"sla_due": {
"type": "string"
},
"start_date": {
"type": "string"
},
"state": {
"type": "string"
},
"std_change_producer_version": {
"type": "string"
},
"sys_class_name": {
"type": "string"
},
"sys_created_by": {
"type": "string"
},
"sys_created_on": {
"type": "string"
},
"sys_domain": {
"properties": {
"link": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"sys_domain_path": {
"type": "string"
},
"sys_id": {
"type": "string"
},
"sys_mod_count": {
"type": "string"
},
"sys_tags": {
"type": "string"
},
"sys_updated_by": {
"type": "string"
},
"sys_updated_on": {
"type": "string"
},
"task_effective_number": {
"type": "string"
},
"test_plan": {
"type": "string"
},
"time_worked": {
"type": "string"
},
"type": {
"type": "string"
},
"unauthorized": {
"type": "string"
},
"universal_request": {
"type": "string"
},
"upon_approval": {
"type": "string"
},
"upon_reject": {
"type": "string"
},
"urgency": {
"type": "string"
},
"user_input": {
"type": "string"
},
"watch_list": {
"type": "string"
},
"work_end": {
"type": "string"
},
"work_notes": {
"type": "string"
},
"work_notes_list": {
"type": "string"
},
"work_start": {
"type": "string"
}
},
"required": [
"parent",
"reason",
"watch_list",
"upon_reject",
"sys_updated_on",
"type",
"approval_history",
"number",
"test_plan",
"cab_delegate",
"requested_by_date",
"state",
"sys_created_by",
"knowledge",
"order",
"phase",
"cmdb_ci",
"delivery_plan",
"impact",
"active",
"work_notes_list",
"priority",
"sys_domain_path",
"cab_recommendation",
"production_system",
"review_date",
"business_duration",
"group_list",
"requested_by",
"change_plan",
"approval_set",
"implementation_plan",
"universal_request",
"end_date",
"short_description",
"correlation_display",
"delivery_task",
"work_start",
"additional_assignee_list",
"outside_maintenance_schedule",
"std_change_producer_version",
"service_offering",
"sys_class_name",
"closed_by",
"follow_up",
"reassignment_count",
"review_status",
"assigned_to",
"start_date",
"sla_due",
"comments_and_work_notes",
"escalation",
"upon_approval",
"correlation_id",
"made_sla",
"backout_plan",
"conflict_status",
"task_effective_number",
"sys_updated_by",
"opened_by",
"user_input",
"sys_created_on",
"on_hold_task",
"sys_domain",
"route_reason",
"closed_at",
"review_comments",
"business_service",
"time_worked",
"chg_model",
"expected_start",
"opened_at",
"work_end",
"phase_state",
"cab_date",
"work_notes",
"close_code",
"assignment_group",
"description",
"on_hold_reason",
"calendar_duration",
"close_notes",
"sys_id",
"contact_type",
"cab_required",
"urgency",
"scope",
"company",
"justification",
"activity_due",
"comments",
"approval",
"due_date",
"sys_mod_count",
"on_hold",
"sys_tags",
"conflict_last_run",
"unauthorized",
"location",
"risk",
"category",
"risk_impact_analysis"
],
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"schema": {
"properties": {
"properties": {
"properties": {
"result": {
"properties": {
"items": {
"properties": {
"properties": {
"properties": {
"active": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"activity_due": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"additional_assignee_list": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"approval": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"approval_history": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"approval_set": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"assigned_to": {
"properties": {
"properties": {
"properties": {
"link": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"value": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"assignment_group": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"backout_plan": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"business_duration": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"business_service": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"cab_date": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"cab_delegate": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"cab_recommendation": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"cab_required": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"calendar_duration": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"category": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"change_plan": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"chg_model": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"close_code": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"close_notes": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"closed_at": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"closed_by": {
"properties": {
"properties": {
"properties": {
"link": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"value": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"cmdb_ci": {
"properties": {
"properties": {
"properties": {
"link": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"value": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"comments": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"comments_and_work_notes": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"company": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"conflict_last_run": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"conflict_status": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"contact_type": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"correlation_display": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"correlation_id": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"delivery_plan": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"delivery_task": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"description": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"due_date": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"end_date": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"escalation": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"expected_start": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"follow_up": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"group_list": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"impact": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"implementation_plan": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"justification": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"knowledge": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"location": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"made_sla": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"number": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"on_hold": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"on_hold_reason": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"on_hold_task": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"opened_at": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"opened_by": {
"properties": {
"properties": {
"properties": {
"link": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"value": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"order": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"outside_maintenance_schedule": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"parent": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"phase": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"phase_state": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"priority": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"production_system": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"reason": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"reassignment_count": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"requested_by": {
"properties": {
"properties": {
"properties": {
"link": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"value": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"requested_by_date": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"review_comments": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"review_date": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"review_status": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"risk": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"risk_impact_analysis": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"route_reason": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"scope": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"service_offering": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"short_description": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"sla_due": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"start_date": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"state": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"std_change_producer_version": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"sys_class_name": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"sys_created_by": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"sys_created_on": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"sys_domain": {
"properties": {
"properties": {
"properties": {
"link": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"value": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"sys_domain_path": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"sys_id": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"sys_mod_count": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"sys_tags": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"sys_updated_by": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"sys_updated_on": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"task_effective_number": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"test_plan": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"time_worked": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"type": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"unauthorized": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"universal_request": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"upon_approval": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"upon_reject": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"urgency": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"user_input": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"watch_list": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"work_end": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"work_notes": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"work_notes_list": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
},
"work_start": {
"properties": {
"type": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"required": {
"items": {
"type": "string"
},
"type": "array"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}