Document Center
Search Search by Current Product
  • remote login
  • data migration
  • reset password
  • MySQL
  • server
edit-icon download-icon
  • Document Center
  • Log Service
  • User Guide
  • Other collection methods
  • SDK collection
  • C Producer Library

    Log Service

    • Product Introduction
      • What is Log Service
      • Architecture
      • Benefits
        • Benefits
        • Cost advantages
        • Compare LogSearch/Analytics with ELK in log query and analysis
        • Compare log query solutions
      • Scenarios
      • Basic concepts
        • Overview
        • Log
        • Project 
        • Logstore
        • Shard
        • Log topic
      • Limits
        • Basic resources
        • Data read and write
        • Search, analysis, and visualization
        • Reserved fields
    • Pricing
      • Billing method
      • Cost optimization
    • Quick Start
      • 5-minute quick start
      • Collect ECS logs
      • Collect Kubernetes logs
      • Access - Log4j/Logback/Producer Lib
      • Analysis - Nginx access logs
      • Analysis - Apache access logs
      • Analyze IIS access logs
    • User Guide
      • Preparation
        • Preparation
        • Manage a project
        • Manage a Logstore 
        • Manage a Shard
      • Data Collection
        • Collection methods
        • Collection acceleration
          • Overview
          • Enable Global Acceleration
          • Configure Logtail collection acceleration
          • Disable Global Acceleration
      • Logtail collection
        • Overview
          • Overview
          • Logtail collection process
          • Logtail configuration and recording files
        • Select a network type
        • Install
          • Install Logtail in Linux
          • Install Logtail on Windows
          • Configure startup parameters
        • Machine Group
          • Overview
          • Create a machine group with an IP address as its identifier
          • Create a machine group with a custom ID as its identifier
          • Collect logs from non-Alibaba Cloud ECS instances or ECS instances not in your account
          • Create a Logtail configuration
          • Manage a machine group
        • Text logs
          • Collect text logs
          • Configure and parse text logs
          • Text logs - Configure time format
          • Text-Import history logs
          • Log topic
        • Container log collection
          • Collect standard Docker logs
          • Kubernetes log collection process
          • Container text logs
          • Containers-standard output
          • Configure Kubernetes log collection on CRD
          • Kubernetes-Sidecar log collection mode
        • Limits
      • Cloud product collection
        • API Gateway Access Log
        • Access logs of Layer-7 Server Load Balancer
        • DDoS log collection
          • Overview
          • Collection procedure
          • Log analysis
          • Log Report
          • Billing method
        • TDS logs
        • WAF logs
          • Grant log query and analysis permissions to a RAM user
          • Log Analyses
          • Log Analyses
          • Fields in the log entry
          • Manage log storage
          • Log Reports
          • Log collection
          • Billing method
          • Activate WAF Log Service
          • Advanced settings
        • Anti-Bot logs
          • Activate Anti-Bot Log Service
          • Fields in the log entry
        • ActionTrail access logs
          • Overview
          • Procedure
      • Other collection methods
        • Web Tracking 
        • Logstash
          • Custom installation
          • Set Logstash as a Windows service
          • Create Logstash collection configurations
          • Advanced functions
          • Logstash error processing
        • SDK collection
          • Producer Library
          • Log4j Appender
          • C Producer Library
        • Common log formats
          • Apache log
          • Nginx logs 
          • Python logs
          • Log4j logs
          • Node.js logs
          • WordPress logs
          • Delimiter logs
          • JSON logs
          • ThinkPHP logs
          • Use Logstash to collect IIS logs
          • Use Logstash to collect CSV logs
          • Use Logstash to collect other logs
          • Unity3D logs
      • Index and query
        • Overview
        • Syntax description
        • Enable and set indexes
        • Query logs
        • Data type of index
          • Text type
          • JSON type
          • Value type
        • Query
          • Query syntax
          • LiveTail
          • Context query
          • Saved search
          • Quick analysis
          • Other functions
        • Analysis grammar
          • General aggregate functions
          • Security detection functions
          • Map map function
          • Estimating functions
          • Mathematical statistics functions
          • Mathematical calculation functions
          • String functions
          • Date and time functions
          • URL functions
          • Regular expression functions
          • JSON functions
          • Type conversion functions
          • IP functions
          • GROUP BY syntax
          • Window functions
          • HAVING syntax
          • ORDER BY syntax
          • LIMIT syntax
          • Case when and if branch syntax
          • Nested subquery
          • Arrays
          • Binary string functions
          • Bit operation
          • Interval-valued comparison and periodicity-valued comparison functions
          • Comparison functions and operators
          • Lambda functions
          • Logical functions
          • Column alias
          • Logstore and RDS join query
          • Geospatial functions
          • Geo functions
          • Join syntax
          • UNNEST function
          • Phone number functions
        • Machine learning syntax and functions
          • Introduction
          • Smooth function
          • Multi-period estimation function
          • Change point detection function
          • Maximum value detection function
          • Prediction and anomaly detection function
          • Sequence decomposition function
          • Time series clustering function
          • Frequent pattern statistical function
          • Differential pattern statistical function
        • Advanced analysis
          • Case study
          • Optimize query for analysis
        • Use JDBC to query and analyze logs
      • Query and visualization
        • Analysis graph
          • Graph description
          • Table
          • Line chart
          • Column chart
          • Bar chart
          • Pie chart
          • Area chart
          • Single value chart
          • Flow chart
          • Sankey diagram
          • Word cloud
          • Tree map
        • Dashboard
          • Dashboard
          • Drill-down analysis
          • Dashboard filter
          • Markdown chart
        • Other visualization methods
          • Console sharing embedment
          • Use JDBC to count and visualize logs
          • OpenTracing implementation of Jaeger
          • Interconnect with DataV big screen
          • Interconnection with Grafana
      • Alarm and notification
        • Set alarms
        • Set alert notifications
        • Set an alarm condition expression
      • Real-time subscription and consumption
        • Overview
        • Preview log data
        • Consumption by consumer groups
          • Consumer group - Usage
          • View consumer group status
          • Consumer group - Monitoring alarm
        • Use Fuction Compute to cosume LogHub Logs
          • Development guide
          • Configure Function Compute log consumption
        • Use Flink to consume LogHub logs
        • Use Storm to consume LogHub logs
        • Use Spark Streaming to consume LogHub logs
        • Use CloudMonitor to consume LogHub logs
      • Data shipping
        • Overview
        • Ship logs to OSS
          • Ship logs to OSS
          • JSON storage
          • Parquet storage
          • CSV storage
          • Advanced RAM authorization
        • Ship data to MaxCompute
          • Ship data to MaxCompute by using DataWorks
        • Manage LogShipper tasks
      • Log Service Monitor
        • Monitor Log Service
        • Log moniroring by CloudMonitor
          • Log Service monitoring metrics
          • Use CloudMonitor to set alarm rules
      • Access control RAM
        • Authorization - Overview
        • Grant RAM sub-accounts permissions to access Log Service
        • Custom RAM authorization
        • Service role
        • User Role
    • Best Practices
      • Typical scenarios
    • API Reference
      • Overview
      • Service endpoint
      • AccessKey
      • Public request header
      • Public response header
      • Request signature
      • Common error codes
      • Project interfaces
        • CreateProject
        • GetProjectLogs
        • DeleteProject
        • GetProject
        • ListProject
      • Logstore related APIs
        • CreateLogstore
        • DeleteLogstore
        • UpdateLogstore
        • GetLogstore 
        • ListLogstore
        • ListShards
        • SplitShard
        • MergeShards
        • GetCursor
        • PullLogs
        • PostLogstoreLogs
        • GetShipperStatus
        • Retryshippertask
        • GetLogs
        • GetHistograms
        • CreateIndex
        • DeleteIndex
        • GetIndex
        • UpdateIndex
      • Logtail machine group related interfaces
        • Createmachinegroup
        • DeleteMachineGroup
        • UpdateMachineGroup
        • ListMachineGroup
        • GetMachineGroup
        • ApplyConfigToMachineGroup
        • RemoveConfigFromMachineGroup
        • ListMachines
        • GetAppliedConfigs
      • Logtail configuration related interfaces
        • CreateConfig
        • ListConfig
        • GetAppliedMachineGroups
        • GetConfig
        • DeleteConfig
        • UpdateConfig
      • Consumer group interfaces
        • CreateConsumerGroup
        • DeleteConsumerGroup
        • GetCheckPoint
        • HeartBeat
        • ListConsumerGroup
        • UpdateCheckPoint
        • UpdateConsumerGroup
      • External Storage
        • External Store related APIs
        • External Store overview
      • RAM subaccount access
        • Overview
        • Resource list
        • Action list
        • Authentication rules
      • STS access mode
        • Overview
      • Common resources
        • Data model
        • Data encoding method
        • Logstore
        • Shard
        • Logtail configuration
        • Machine group
    • SDK Reference
      • Basic Descriptions 
        • Overview
        • Configurations
        • Handle errors
        • Interface regulations
      • Java SDK
      • .NET SDK
      • PHP SDK
      • Python SDK
      • Android SDK
      • C SDK
      • Go
      • iOS SDK
      • . Log Service SDK for .NET Core 
    • Command Line Interface - CLI
      • Command Line Interface - CLI
    • FAQ
      • Hot Topics
        • Basic questions
        • Log management
      • Log collection
        • Troubleshoot collection errors
        • What do I do if a Logtail machine has no heartbeat?
        • Do I need to update Logtail settings after the network type is changed?
        • Diagnose collection errors
        • Log collection error types
        • Query local collection status
        • Logtail quick diagnosis tool
        • Compare Log Service LogHub and Kafka
        • Comparison among log collection tools: Logstash, fluentd, and Logtail
        • Collect logs in complete regular mode
          • Configure a regular expression
          • How do I optimize regular expressions?
          • How do I collect various formats of logs in complete regular mode?
        • Why am I unable to collect SLB access logs?
        • How do I set the time format?
      • Log query
        • FAQs about log query
        • Logs cannot be queried
        • Differences between log consumption and log query
        • Common errors for log query and analysis
        • How do I configure an index for a historical log?
        • What can cause an inaccurate query result to return?
      • Knowledge Base
      • Pricing
        • Disable Log Service
        • Billing FAQs
    • General Reference
      • Guidelines for the use of documentation
        • Alibaba Cloud documentation
        • Instructions for open source documentation
          • Open-Source Documentation Code of Conduct
          • Editing Open-Source Documentation
      • Alibaba Cloud console
      • Regions and Zones
      • Service limits
      • Best practice of primary account security
      • Create an AccessKey
      • ICP Filing
      • Glossary

C Producer Library

Last Updated: Sep 29, 2018 Edit

Besides the Producer Library of Java version, LogHub also supports the Producer Library and Producer Lite  Library of the C version, which provides you with a simple and high-performance one-stop log collection solution across platforms and with low consumption of resources.

For the GitHub project address, see:

  • C Producer Library (recommended for servers)
  • C Producer Lite Library (recommended for IOT and smart devices)
Download PDF
Is this page helpful?
  • ★
  • ★
  • ★
  • ★
  • ★
Thank you! We've received your feedback.
Thank you for your rating!
Thank you for your rating!
Comments or suggestions?

What might be the problems? (Select all that apply)

How can we make it better? (Select all that apply)

More suggestions?


Free Trial Free Trial