Add Apache Phoenix example
This commit is contained in:
		
							parent
							
								
									064647607e
								
							
						
					
					
						commit
						9e05a01dff
					
				
							
								
								
									
										18
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								README.md
									
									
									
									
									
								
							@ -153,3 +153,21 @@ output {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Apache Phoenix (HBase SQL)
 | 
			
		||||
  * Tested with Ubuntu 14.04.03 / Logstash 2.1 / Apache Phoenix 4.6
 | 
			
		||||
  * <!> HBase and Zookeeper must be both accessible from logstash machine <!>
 | 
			
		||||
```
 | 
			
		||||
input
 | 
			
		||||
{
 | 
			
		||||
    stdin { }
 | 
			
		||||
}
 | 
			
		||||
output {
 | 
			
		||||
    jdbc {
 | 
			
		||||
        connection_string => "jdbc:phoenix:ZOOKEEPER_HOSTNAME"
 | 
			
		||||
        statement => [ "UPSERT INTO EVENTS log (host, timestamp, message) VALUES(?, ?, ?)", "host", "@timestamp", "message" ]
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user