Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update README.markdown

  • Loading branch information...
commit c0df698950e82918697366021351c6c2515ce7c7 1 parent 793ec46
Chris McCoy lofidellity authored

Showing 1 changed file with 8 additions and 12 deletions. Show diff stats Hide diff stats

  1. +8 12 README.markdown
20 README.markdown
Source Rendered
@@ -2,24 +2,20 @@
2 2
3 3 ## Why?
4 4 * We wanted a way to generate statistics on similar data on the fly.
5   -*
6 5
7 6 ## Configuration
8 7 * To use, copy the sample config (lib/config.php.sample) to lib/config.php and make any
9 8 changes you need
  9 +
10 10 ```php
11   -# the hostname/ip to connect to ElasticSearch
  11 +<?php
  12 +
12 13 define("ELASTICSEARCH_HOST", "localhost");
13   -# the port to connect to ElasticSearch
14   -define("ELASTICSEARCH_PORT", "9200");
15   -# the hostname to search for if none entered
16   -define("DEFAULT_HOSTNAME", "*");
17   -# the start date to search from if none entered
18   -define("DEFAULT_START_DATE", "1 hour ago");
19   -# the end date to search til if none entered
20   -define("DEFAULT_END_DATE", "now");
21   -# the defaults string to search for is none entered
22   -define("DEFAULT_SEARCH_STRING", "logs");
  14 +define("ELASTICSEARCH_PORT", "9200");
  15 +define("DEFAULT_HOSTNAME", "*");
  16 +define("DEFAULT_START_DATE", "1 hour ago");
  17 +define("DEFAULT_END_DATE", "now");
  18 +define("DEFAULT_SEARCH_STRING", "logs");
23 19 ```
24 20
25 21 ## Included code

0 comments on commit c0df698

Please sign in to comment.
Something went wrong with that request. Please try again.