PUT FORMAT  top

    
    
           First, **pcp2elasticsearch** sends this type definition to
           Elasticsearch:
    
                   {
                       "mappings": {
                           "pcp-metric": {
                               "properties": {
                                   "@timestamp": {
                                       "type": "date"
                                   },
                                   "host-id": {
                                       "type": "string"
                                   }
                               }
                           }
                       }
                   }
    
           The actual metrics data document is similar to this example:
    
                   {
                       "@host-id": "bozo",
                       "mem": {
                           "util": {
                               "used": 4525820,
                               "free": 3344000
                           }
                       },
                       "@timestamp": 1507637520,
                       "disk": {
                           "partitions": {
                               "@instances": [
                                   {
                                       "read": 1121,
                                       "@id": "sda1"
                                   },
                                   {
                                       "read": 77306,
                                       "@id": "sda2"
                                   },
                                   {
                                       "read": 131,
                                       "@id": "sda3"
                                   }
                               ]
                           }
                       }
                   }
    

##  FILES  top

    
    
           _pcp2elasticsearch.conf_
                **pcp2elasticsearch** configuration file (see **-c**)
    
           $PCP_SYSCONF_DIR _/pmrep/*.conf_
                system provided default **pmrep** configuration files
    

##  PCP ENVIRONMENT  top

    
    
           Environment variables with the prefix **PCP_** are used to
           parameterize the file and directory names used by PCP.  On each
           installation, the file _/etc/pcp.conf_ contains the local values
           for these variables.  The **$PCP_CONF** variable may be used to
           specify an alternative configuration file, as described in
           [pcp.conf(5)](../man5/pcp.conf.5.html).
    
           For environment variables affecting PCP tools, see
           [pmGetOptions(3)](../man3/pmGetOptions.3.html).
    

##  SEE ALSO  top

    
    
           [PCPIntro(1)](../man1/PCPIntro.1.html), [mkaf(1)](../man1/mkaf.1.html), [pcp(1)](../man1/pcp.1.html), [pcp2graphite(1)](../man1/pcp2graphite.1.html), [pcp2influxdb(1)](../man1/pcp2influxdb.1.html),
           [pcp2json(1)](../man1/pcp2json.1.html), [pcp2spark(1)](../man1/pcp2spark.1.html), [pcp2xlsx(1)](../man1/pcp2xlsx.1.html), [pcp2xml(1)](../man1/pcp2xml.1.html),
           [pcp2zabbix(1)](../man1/pcp2zabbix.1.html), [pmcd(1)](../man1/pmcd.1.html), [pminfo(1)](../man1/pminfo.1.html), [pmrep(1)](../man1/pmrep.1.html), [pmGetOptions(3)](../man3/pmGetOptions.3.html),
           [pmLoadDerivedConfig(3)](../man3/pmLoadDerivedConfig.3.html), [pmParseUnitsStr(3)](../man3/pmParseUnitsStr.3.html), [pmRegisterDerived(3)](../man3/pmRegisterDerived.3.html),
           [pmSpecLocalPMDA(3)](../man3/pmSpecLocalPMDA.3.html), [LOGARCHIVE(5)](../man5/LOGARCHIVE.5.html), [pcp.conf(5)](../man5/pcp.conf.5.html), [pmrep.conf(5)](../man5/pmrep.conf.5.html) and
           [PMNS(5)](../man5/PMNS.5.html).
    

##  COLOPHON  top

    
    
           This page is part of the _PCP_ (Performance Co-Pilot) project.
           Information about the project can be found at 
           â¨<http://www.pcp.io/>â©.  If you have a bug report for this manual