VMware vcenter Log Insight Developer's Guide



Similar documents
Upgrading Horizon Workspace

VMware vcenter Configuration Manager SQL Migration Helper Tool User's Guide vcenter Configuration Manager 5.6

VMware vcenter Log Insight Security Guide

Management Pack for vrealize Infrastructure Navigator

Using the vcenter Orchestrator Plug-In for vsphere Auto Deploy 1.0

VMware vcenter Log Insight Security Guide

Active Directory Solution 1.0 Guide

VMware vcenter Configuration Manager and VMware vcenter Application Discovery Manager Integration Guide

Reconfiguring VMware vsphere Update Manager

Reconfiguration of VMware vcenter Update Manager

Using the vcenter Orchestrator Plug-In for Microsoft Active Directory

VMware vcenter Log Insight User's Guide

Upgrading VMware Identity Manager Connector

vrealize Air Compliance OVA Installation and Deployment Guide

vcloud Air Platform Programmer's Guide

VMware vcenter Operations Manager Administration Guide

Obtaining SSL Certificates for VMware View Servers

VMware Remote Console for vrealize Automation

vcenter Configuration Manager Backup and Disaster Recovery Guide VCM 5.3

vrealize Business System Requirements Guide

VMware vcenter Log Insight Getting Started Guide

vcenter Support Assistant User's Guide

VMware vsphere Replication Security Guide

Using the vcenter Orchestrator HTTP-REST Plug-In 1.0.x

Reconfiguring VMware vsphere Update Manager

SNMP Adapter Installation and Configuration Guide

vcloud Suite Licensing

VMware vcenter Operations Manager Enterprise Administration Guide

VMware vcenter Discovered Machines Import Tool User's Guide Version for vcenter Configuration Manager 5.3

vrealize Hyperic Supported Configurations and System Requirements

Obtaining SSL Certificates for VMware Horizon View Servers

VMware Software Manager - Download Service User's Guide

vsphere Host Profiles

VMware vcenter Configuration Manager Backup and Disaster Recovery Guide vcenter Configuration Manager 5.4.1

vsphere App HA Installation and Configuration Guide

VMware vcenter Log Insight User's Guide

VMware vcenter Configuration Manager Software Provisioning Components Installation and User Guide

Installing and Configuring vcenter Multi-Hypervisor Manager

Offline Data Transfer to VMWare vcloud Hybrid Service

Configuring Multiple ACE Management Servers VMware ACE 2.0

ESX 4 Patch Management Guide ESX 4.0

Installing and Configuring vcloud Connector

Microsoft Internet Information Services Solution 1.0

Advanced Service Design

vrealize Operations Manager User Guide

EMC Smarts Integration Guide

Installing and Configuring vcenter Support Assistant

Scenarios for Setting Up SSL Certificates for View

vrealize Operations Manager Customization and Administration Guide

VMware vcenter Log Insight Getting Started Guide

vsphere Replication for Disaster Recovery to Cloud

IT Business Management System Requirements Guide

Adding a DNS Update Step to a Recovery Plan VMware vcenter Site Recovery Manager 4.0 and later

vshield API Programming Guide vshield Manager 4.1 vshield App 1.0 vshield Edge 1.0 vshield Endpoint 1.0

Managing Multi-Hypervisor Environments with vcenter Server

vcenter Operations Manager for Horizon Supplement

VMware vrealize Operations for Horizon Security

Getting Started with vcloud Air Object Storage powered by Google Cloud Platform

VMware vrealize Operations for Horizon Security

Developing Web Views for VMware vcenter Orchestrator

Administering View Cloud Pod Architecture

vsphere Upgrade vsphere 6.0 EN

Installation and Configuration Guide

Configuring Single Sign-on from the VMware Identity Manager Service to AirWatch Applications

Installing and Configuring vcloud Connector

VMware KVM. VMware Workstation Pro 12.0 EN

Scalability Tuning vcenter Operations Manager for View 1.0

VMware vcenter Configuration Manager Backup and Disaster Recovery Guide vcenter Configuration Manager 5.7

Installing and Administering VMware vsphere Update Manager

VMware Horizon FLEX User Guide

Extensibility. vcloud Automation Center 6.0 EN

VMware Virtual Desktop Manager User Authentication Guide

VMware vrealize Log Insight User's Guide

ThinPrint GPO Configuration for Location-Based Printing

Legacy Host Licensing with vcenter Server 4.x ESX 3.x/ESXi 3.5 and vcenter Server 4.x

Replacing vcenter Server 4.0 Certificates VMware vsphere 4.0

Setup for Failover Clustering and Microsoft Cluster Service

vcloud Director User's Guide

Service for checking whether an is operative or not. Validate ids in your databases.

Nuance Mobile Developer Program. HTTP Services for Nuance Mobile Developer Program Clients

VMware vcloud Air - Disaster Recovery User's Guide

Request Manager Installation and Configuration Guide

VMware vcenter Update Manager Administration Guide

Remote Access API 2.0

VMware Identity Manager Connector Installation and Configuration

VMware Identity Manager Administration

IaaS Configuration for Cloud Platforms

vcloud Automation Center Support Matrix vcloud Automation Center 5.2

Riverbed Cascade Shark Common REST API v1.0

VMware vcenter Log Insight Administration Guide

VMware Horizon FLEX User Guide

vsphere Replication for Disaster Recovery to Cloud

Credit Card Retrieval API Implementation Guide This guide illustrates how to implement the Credit Card Retrieval API.

Integrated Virtual Debugger for Visual Studio Developer s Guide VMware Workstation 8.0

VMware vcenter Update Manager Administration Guide

Configuration Maximums VMware Infrastructure 3

Transcription:

VMware vcenter Log Insight Developer's Guide vcenter Log Insight 2.0 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs. EN-001508-00

VMware vcenter Log Insight Developer's Guide You can find the most up-to-date technical documentation on the VMware Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com Copyright 2014 VMware, Inc. All rights reserved. Copyright and trademark information. VMware, Inc. 3401 Hillview Ave. Palo Alto, CA 94304 www.vmware.com 2 VMware, Inc.

Contents 1 About vcenter Log Insight Developer's Guide 5 2 Using the Log Insight Ingestion API 7 3 API Services 9 Using the messages/ingest Service 9 Index 11 VMware, Inc. 3

VMware vcenter Log Insight Developer's Guide 4 VMware, Inc.

About vcenter Log Insight 1 Developer's Guide The VMware vcenter Log Insight Developer's Guide provides information about the Log Insight Ingestion API. Intended Audience This information is intended for anyone who wants to use the Log Insight Ingestion API. You must be familiar with REST concepts and with the JSON serialization format. VMware, Inc. 5

VMware vcenter Log Insight Developer's Guide 6 VMware, Inc.

Using the Log Insight Ingestion API 2 You can interact with the Log Insight Ingestion API to send events to the Log Insight server. All API request and response bodies are UTF8 encoded JSON strings with Content-Type: application/json header field. On success, all calls return HTTP response code 200. VMware, Inc. 7

VMware vcenter Log Insight Developer's Guide 8 VMware, Inc.

API Services 3 A list of services that the Log Insight Ingestion API provides. Using the messages/ingest Service You can use the messages/ingest service to send events to a Log Insight server using HTTP POST requests. The messages/ingest service uses the following syntax. http://loginsight_host:9000/api/v1/messages/ingest/agentid HTTP Method POST NOTE The Log Insight Ingestion API has a limit of 100 KB per HTTP POST request. Parameters Parameter Type Where to pass Description agentid String In URL The UID of the sending agent Events array Array In POST body An array of events. Each event must have the following format. {"messages": [{ "text": optional, message text as a string, "timestamp": optional, timestamp encoded as number of milliseconds since Unix epoch, "fields": optional array of [{ "name": the name of the field, "content": optional, the content of the field, "startposition": optional, the start position in the "text", "length": optional, the length of the string in the "text", },...] },...] } NOTE If "timestamp" is not present, the server uses arrival time. If "fields"[]."content" is not present, then "startposition" and "length" must be present and must point to a valid position in the "text" field string. VMware, Inc. 9

VMware vcenter Log Insight Developer's Guide Return Values Name Type Description HTTP 200 OK Integer Standard HTTP response codes 400 Bad Request 503 Service Unavailable 500 Internal Server Error On success the service returns HTTP response code 200 and the following JSON string. { } "status":"ok" Example Request POST http://loginsight:9000/api/v1/messages/ingest/4c4c4544-0037-5910-805a-c4c04f585831 Host: loginsight:9000 Connection: keep-alive Content-Type: application/json charset: utf-8 Content-Length:?? {"messages": [{ "fields": [ {"name": "Channel", "content": "Security"}, {"name": "EventID", "content": "4688"}, {"name": "EventRecordID", "content": "33311266"}, {"name": "Keywords", "content": "Audit Success"}, {"name": "Level", "content": "Information"}, {"name": "OpCode","content": "Info"}, {"name": "ProcessID", "content": "4"}, {"name": "ProviderName", "content": "Microsoft-Windows-Security-Auditing"}, {"name": "Task", "content": "Process Creation"}, {"name": "ThreadID", "content": "64"} ], "text": "A new process has been created.", "timestamp": 1396622879241 } ] } Example Response HTTP/1.1 200 OK {"status":"ok","message":"messages ingested","ingested":18} 10 VMware, Inc.

Index A api messages/ingest service 9 services 9 use 7 I intended audience 5 VMware, Inc. 11

VMware vcenter Log Insight Developer's Guide 12 VMware, Inc.