title: LogFormat for cloudflare in apache
body: <p>I have setup LogFormat in Apache.conf. But i am not able to see any logs from cloudflare in access.log.Can you suggest me, it would be great for us.</p>
  
  <pre><code>LogFormat "%v %{CF-IPCountry}i (via cloudflare:%h) %l %u %t \"%r\" %&gt;s %b" cloudflare
  
  LogFormat "%v %{CF-Ray}i (via cloudflare:%h) %l %u %t \"%r\" %&gt;s %b" cloudflare
  
  LogFormat "%v %{CF_CONNECTING_IP}i (via cloudflare:%h) %l %u %t \"%r\" %&gt;s %b" cloudflare
  
  LogFormat "%v %{CF_VISITOR}i (via cloudflare:%h) %l %u %t \"%r\" %&gt;s %b" cloudflare
  </code></pre>
  
  <p>For testing :</p>
  
  <pre><code>[iravindra@iravindrahost ~]# tail -f /var/log/httpd/access_log| grep "abc"
  
  
  108.162.222.163 - - [10/Apr/2015:01:25:13 -0400] "GET /abc.png HTTP/1.1" 404 287 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36
  </code></pre>