shuaijinchao commented on a change in pull request #5819:
URL: https://github.com/apache/apisix/pull/5819#discussion_r771091241



##########
File path: docs/en/latest/plugins/splunk-hec-logging.md
##########
@@ -0,0 +1,143 @@
+---
+title: splunk-hec-logging
+---
+
+<!--
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+-->
+
+## Summary
+
+- [**Name**](#name)
+- [**Attributes**](#attributes)
+- [**How To Enable**](#how-to-enable)
+- [**Test Plugin**](#test-plugin)
+- [**Disable Plugin**](#disable-plugin)
+
+## Name
+
+The `splunk-hec-logging` plugin is used to forward the request log of `Apache 
APISIX` to `Splunk HTTP Event Collector (HEC)` for analysis and storage. After 
the plugin is enabled, `Apache APISIX` will obtain request context information 
in `Log Phase` serialize it into [Splunk Event Data 
format](https://docs.splunk.com/Documentation/Splunk/latest/Data/FormateventsforHTTPEventCollector#Event_metadata)
 and submit to the batch queue. When the batch queue is triggered by a capacity 
or time threshold, the data in the queue will be submitted to `Splunk HEC`.
+
+For more info on Batch-Processor in Apache APISIX please refer to:
+[Batch-Processor](../batch-processor.md)
+
+## Attributes
+
+| Name                    | Requirement   | Default                            
                                                                                
                                                                               
| Description                                                                   
                                                                                
                   |
+| ----------------------- | ------------- | 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 | 
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 |
+| endpoint                | required      |                                    
                                                                                
                                                                               
| Splunk HEC endpoint configuration info                                        
                                                                                
                   |
+| endpoint.uri            | required      |                                    
                                                                                
                                                                               
| Splunk HEC event collector API                                                
                                                                                
                   |
+| endpoint.token          | required      |                                    
                                                                                
                                                                               
| Splunk HEC authentication token                                               
                                                                                
                   |
+| endpoint.channel        | optional      |                                    
                                                                                
                                                                               
| Splunk HEC send data channel identifier, refer to: [About HTTP Event 
Collector Indexer 
Acknowledgment](https://docs.splunk.com/Documentation/Splunk/8.2.3/Data/AboutHECIDXAck)
   |
+| endpoint.timeout        | optional      | 60                                 
                                                                                
                                                                               
| Splunk HEC send data timeout                                                  
                                                                                
                   |

Review comment:
       time unit is seconds, document updated




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to