# Logstash data type change in config file

**URL:** https://discuss.elastic.co/t/logstash-data-type-change-in-config-file/258680
**Category:** Logstash
**Created:** [December 15, 2020, 8:09am UTC](https://discuss.elastic.co/t/logstash-data-type-change-in-config-file/258680 "2020-12-15T08:09:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![anjali28](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anjali28](https://discuss.elastic.co/u/anjali28)
#### Post date: [December 15, 2020, 8:09am UTC](https://discuss.elastic.co/t/logstash-data-type-change-in-config-file/258680/1 "2020-12-15T08:09:34Z")

</div>

Hello i am creating a config file to import the data from a csv file.  
when i call the config file as it is, its working properly and data is coming in kibana.  
But when i am changing the data type of a field in logstash config file its not working.  
Below is the config file format:

input {

```
file {

    path => "C:/elk/user.csv"

    start_position => beginning

    sincedb_path => "Null"

}

```

}

filter {

```
csv {

    columns => [

             "customerid",

            "installationid",

            "stageid",  

            "serviceid" ,

            "time",     

            "active",   

            "blocked",  

            "created"

    ]

    separator => ","        

    mutate {convert => ["active" , "integer"]} 

    mutate {convert => ["blocked" , "integer"]} 

    mutate {convert => ["created" , "integer"]} 

}

```

}

output {

```
stdout

{

    codec => rubydebug

}

 elasticsearch {

    action => "index"

    hosts => ["127.0.0.1:9200"]

    index => "usertest"

}

```

}

> Please tell me what is wrong with this.  
> thanks in advance

---

<div class="post-metadata">

### Author: ![anjali28](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anjali28](https://discuss.elastic.co/u/anjali28)
#### Post date: [December 16, 2020, 1:17pm UTC](https://discuss.elastic.co/t/logstash-data-type-change-in-config-file/258680/2 "2020-12-16T13:17:59Z")

</div>

@TimV if you could help with the above error!

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [December 17, 2020, 4:01am UTC](https://discuss.elastic.co/t/logstash-data-type-change-in-config-file/258680/3 "2020-12-17T04:01:40Z")

</div>

> [@anjali28](#):
>
> its not working.

What does "not working" mean? What behaviour are you expecting? What behaviour are you seeing? Are there any error messages?

You need to put the work in to describe your problem as clearly and concisely as possible.

---

<div class="post-metadata">

### Author: ![anjali28](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anjali28](https://discuss.elastic.co/u/anjali28)
#### Post date: [December 21, 2020, 7:19am UTC](https://discuss.elastic.co/t/logstash-data-type-change-in-config-file/258680/4 "2020-12-21T07:19:18Z")

</div>

solved

---

<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: [January 18, 2021, 7:19am UTC](https://discuss.elastic.co/t/logstash-data-type-change-in-config-file/258680/5 "2021-01-18T07:19:25Z")

</div>

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