# Not able to Create Index in Kibana

**URL:** <https://discuss.elastic.co/t/not-able-to-create-index-in-kibana/81294>\
**Category:** Kibana\
**Created:** [April 5, 2017, 10:44am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-kibana/81294 "2017-04-05T10:44:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sriramsm04](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@sriramsm04](https://discuss.elastic.co/u/sriramsm04)\
**Post date:** [April 5, 2017, 10:44am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-kibana/81294/1 "2017-04-05T10:44:50Z")

</div>

Hi,

I am trying to create a vritualization for adit.log. I have the config file as follows.

```
input {
  file {
    path => ["/var/log/audit/audit.log"]
    start_position => beginning
    sincedb_path => "/dev/null"
    ignore_older => 0
  }
}

filter {
  grok {
        match => { "pattern" => "type=%{WORD:audit_type} msg=audit\(%{NUMBER:audit_epoch}:%{NUMBER:audit_counter}\): pid=%{NUMBER:audit_pid} uid=%{NUMBER:audit_uid} auid=%{NUMBER:audit_audid} ses=%{NUMBER:ses} subj=%{GREEDYDATA:subj} msg=\'op=%{WORD:operation}:%{WORD:detail_operation} grantors=%{WORD:grnt}.%{WORD:detail_grnt} acct=\"%{WORD:acct_user}\" exe=\"%{GREEDYDATA:exec}\" hostname=%{GREEDYDATA:hostname} addr=%{GREEDYDATA:ipaddr} terminal=%{WORD:terminal} res=%{WORD:result}\'" }
    add_tag => "selinux_audit"
  }
}

output {
    elasticsearch {
        hosts => ["localhost:9200"]
        index => "logs"
    }
}

```

I was seeing`_grokparsefailure` tags all over Kibana dashboard.  
When I am trying to create an index. I am not able to pull the fields.

 ![](https://us1.discourse-cdn.com/elastic/original/3X/a/e/ae96542b48df094fd060e585a6c97c50893d333f.png)

When I checked the logstash logs, this is what I can see.

```
[2017-04-05T08:56:47,063][INFO][logstash.outputs.elasticsearch] Using mapping template from {:path=>nil}
[2017-04-05T08:56:47,098][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"template"=>"logstash-*", "version"=>50001, "settings"=>{"index.refresh_interval"=>"5s"}, "mappings"=>{"_default_"=>{"_all"=>{"enabled"=>true, "norms"=>false}, "dynamic_templates"=>[{"message_field"=>{"path_match"=>"message", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false}}}, {"string_fields"=>{"match"=>"*", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false, "fields"=>{"keyword"=>{"type"=>"keyword"}}}}}], "properties"=>{"@timestamp"=>{"type"=>"date", "include_in_all"=>false}, "@version"=>{"type"=>"keyword", "include_in_all"=>false}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}}
[2017-04-05T08:56:47,104][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>[#<URI::Generic:0x773fbda1 URL://40.71.198.172:9200>]}
[2017-04-05T08:56:47,172][INFO][logstash.pipeline] Starting pipeline {"id"=>"main", "pipeline.workers"=>2, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>250}
[2017-04-05T08:56:47,470][INFO][logstash.pipeline] Pipeline main started
[2017-04-05T08:56:47,545][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=>9604}

```

Kindly help  
TIA.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 5, 2017, 10:48am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-kibana/81294/2 "2017-04-05T10:48:14Z")

</div>

What do your events look like?

---

<div class="post-metadata">

**Author:** ![sriramsm04](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@sriramsm04](https://discuss.elastic.co/u/sriramsm04)\
**Post date:** [April 5, 2017, 10:54am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-kibana/81294/3 "2017-04-05T10:54:00Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/3X/c/7/c72e2dada3b170022139f790abf33e0368d1c044.png)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 5, 2017, 11:04am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-kibana/81294/4 "2017-04-05T11:04:06Z")

</div>

It does indeed look like your grok pattern is not working, which means no fields are getting parsed. Can you paste a raw log line so we can see what its looks like (not picture of text or screenshot)?

---

<div class="post-metadata">

**Author:** ![sriramsm04](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@sriramsm04](https://discuss.elastic.co/u/sriramsm04)\
**Post date:** [April 5, 2017, 11:07am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-kibana/81294/5 "2017-04-05T11:07:29Z")

</div>

`type=CRED_DISP msg=audit(1490953201.475:498017): pid=40915 uid=0 auid=0 ses=1196 subj=system_u:system_r:crond_t:s0-s0:c0.c1023 msg='op=PAM:setcred grantors=pam_env,pam_unix acct="root" exe="/usr/sbin/crond" hostname=? addr=? terminal=cron res=success'`

I have checked the pattern for match using the Grok Debugger as well.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 3, 2017, 11:07am UTC](https://discuss.elastic.co/t/not-able-to-create-index-in-kibana/81294/6 "2017-05-03T11:07:44Z")

</div>

Closed on May 3, 2017, 11:07am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
