# Logstash problem for loading data

**URL:** <https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936>\
**Category:** Logstash\
**Created:** [July 30, 2019, 3:31pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936 "2019-07-30T15:31:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdelmadjid](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Abdelmadjid](https://discuss.elastic.co/u/Abdelmadjid)\
**Post date:** [July 30, 2019, 3:31pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/1 "2019-07-30T15:31:21Z")

</div>

hello  
i need help for loading data to elasticsearch with logstash on windows 10  
when i try to load data to logstash with these config file  
input{  
file{  
path =\> "C:\Users\pc intervalle\Downloads\Compressed\logstash-7.2.0\config\Credit\_card.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
}

```
filter{
	csv{
		separator => ","
		columns => ["Card_Type_Code","Card_Type_Full_Name","Issuing_Bank","Card_Number","Card_Holders_Name","CVV_CVV2","Issue_Date","Expiry_Date","Billing_Date","Card_PIN","Credit_Limit"]

		}	
}

```

}  
output{  
elasticsearch{  
hosts =\> "localhost:9200"  
index =\> "Credit\_Card"  
document\_type =\> "sold\_cars"

```
}
sdout{}

```

}

i figure these problem  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/9/89458ad278f6c296a41ed57f29d824548e0435e5.png)  
if there other configuration in logstash or elasticsearch for loading these data  
eny one know about these problem please  
thank's

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 30, 2019, 3:41pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/2 "2019-07-30T15:41:05Z")

</div>

You are missing a } to close the input section. It should come immediately before 'filter'.

Also, do not use backslash in the path option of a file input. Use forward slash.

---

<div class="post-metadata">

**Author:** ![Abdelmadjid](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Abdelmadjid](https://discuss.elastic.co/u/Abdelmadjid)\
**Post date:** [August 1, 2019, 10:46am UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/3 "2019-08-01T10:46:44Z")

</div>

i tryed with what are you say but the same problem  
input{  
file{  
path =\> "C:/Users/pc intervalle/Downloads/Compressed/logstash-7.2.0/config/Credit\_card.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
}  
}

```
filter{
	csv{
		separator => ","
		columns => ["Card_Type_Code","Card_Type_Full_Name","Issuing_Bank","Card_Number","Card_Holders_Name","CVV_CVV2","Issue_Date","Expiry_Date","Billing_Date","Card_PIN","Credit_Limit"]

		}
		
}

```

}  
output{  
elasticsearch{  
hosts =\> "localhost:9200"  
index =\> "Credit\_Card"  
document\_type =\> "sold\_cars"

```
}
sdout{}

```

}  
the problem

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

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 1, 2019, 11:54am UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/4 "2019-08-01T11:54:12Z")

</div>

Now you have an extra } that needs to be removed at the end of the filter {} section.

---

<div class="post-metadata">

**Author:** ![Abdelmadjid](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Abdelmadjid](https://discuss.elastic.co/u/Abdelmadjid)\
**Post date:** [August 1, 2019, 12:28pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/5 "2019-08-01T12:28:48Z")

</div>

input{  
file{  
path =\> "C:/Users/pc intervalle/Downloads/Compressed/logstash-7.2.0/config/Credit\_card.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
}  
}

```
filter{
	csv{
		separator => ","
		columns => ["Card_Type_Code","Card_Type_Full_Name","Issuing_Bank","Card_Number","Card_Holders_Name","CVV_CVV2","Issue_Date","Expiry_Date","Billing_Date","Card_PIN","Credit_Limit"]

		}
		
}

```

output{  
elasticsearch{  
hosts =\> "localhost:9200"  
index =\> "Credit\_Card"  
document\_type =\> "sold\_cars"

```
}
sdout{}

```

}  
i remove it but the same resultat

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

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 1, 2019, 12:29pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/6 "2019-08-01T12:29:49Z")

</div>

Did you read the error message? It's not the same result, it is completely different!

---

<div class="post-metadata">

**Author:** ![Abdelmadjid](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Abdelmadjid](https://discuss.elastic.co/u/Abdelmadjid)\
**Post date:** [August 1, 2019, 12:33pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/7 "2019-08-01T12:33:20Z")

</div>

yeah you are whrite it not the same error  
but these error showed to me i see it before but i dont get it a solution  
had you an idea .  
thank you so match

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 1, 2019, 12:38pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/8 "2019-08-01T12:38:26Z")

</div>

> [@Abdelmadjid](#):
>
> sdout{}

There is no sdout plugin.

---

<div class="post-metadata">

**Author:** ![Abdelmadjid](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Abdelmadjid](https://discuss.elastic.co/u/Abdelmadjid)\
**Post date:** [August 1, 2019, 12:46pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/9 "2019-08-01T12:46:37Z")

</div>

please,  
how can i add it i'm new in elasticsearch

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 1, 2019, 12:47pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/10 "2019-08-01T12:47:55Z")

</div>

I would guess you meant

```
stdout {}
```

---

<div class="post-metadata">

**Author:** ![Abdelmadjid](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Abdelmadjid](https://discuss.elastic.co/u/Abdelmadjid)\
**Post date:** [August 1, 2019, 12:48pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/11 "2019-08-01T12:48:49Z")

</div>

yeah  
stdout{}

---

<div class="post-metadata">

**Author:** ![Abdelmadjid](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Abdelmadjid](https://discuss.elastic.co/u/Abdelmadjid)\
**Post date:** [August 1, 2019, 12:53pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/12 "2019-08-01T12:53:17Z")

</div>

i'm add it but there a lot a error's dont understand it  
input{  
file{  
path =\> "C:/Users/pc intervalle/Downloads/Compressed/logstash-7.2.0/config/Credit\_card.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
}  
}

```
filter{
	csv{
		separator => ","
		columns => ["Card_Type_Code","Card_Type_Full_Name","Issuing_Bank","Card_Number","Card_Holders_Name","CVV_CVV2","Issue_Date","Expiry_Date","Billing_Date","Card_PIN","Credit_Limit"]

		}
		
}

```

output{  
elasticsearch{  
hosts =\> "localhost:9200"  
index =\> "Credit\_Card"  
document\_type =\> "card\_number"

```
}
sdout{
id => "01021994"
}

```

}

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/3/4381a30a8f89b9ae2be7a62ae25b62a734ea8862.png)

---

<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:** [August 29, 2019, 12:53pm UTC](https://discuss.elastic.co/t/logstash-problem-for-loading-data/192936/13 "2019-08-29T12:53:19Z")

</div>

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