# Input PDF in logstash

**URL:** <https://discuss.elastic.co/t/input-pdf-in-logstash/217722>\
**Category:** Logstash\
**Created:** [February 4, 2020, 5:32am UTC](https://discuss.elastic.co/t/input-pdf-in-logstash/217722 "2020-02-04T05:32:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivek\_Srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vivek_srivastava/32/61988_2.png) [@Vivek\_Srivastava](https://discuss.elastic.co/u/Vivek_Srivastava)\
**Post date:** [February 4, 2020, 5:32am UTC](https://discuss.elastic.co/t/input-pdf-in-logstash/217722/1 "2020-02-04T05:32:43Z")

</div>

Unable to input PDF in logstash.

[2020-02-03T23:38:35,068][FATAL][logstash.runner] An unexpected error occurred! {:error=\>#\<LogStash::Error: Don't know how to handle `Java::JavaLang::IllegalStateException` for `PipelineAction::Create<main>`\>, :backtrace=\>["org/logstash/execution/ConvergeResultExt.java:109:in `create'", "org/logstash/execution/ConvergeResultExt.java:37:in `add'", "C:/Users/Desktop/ELK/elknew/lop/logstash-7.5.2/logstash-core/lib/logstash/agent.rb:339:in `block in converge\_state'"]}  
[2020-02-03T23:38:35,189][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

Any idea how to fix it?

---

<div class="post-metadata">

**Author:** ![kares](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kares/32/70705_2.png) [@kares](https://discuss.elastic.co/u/kares)\
**Post date:** [February 11, 2020, 3:08pm UTC](https://discuss.elastic.co/t/input-pdf-in-logstash/217722/2 "2020-02-11T15:08:36Z")

</div>

Hello Vive, its unclear what you're asking about.  
LS does not have a pdf input. Is your error reproducible?  
Sounds like you might have some issue in your pipeline configuration.

---

<div class="post-metadata">

**Author:** ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)\
**Post date:** [February 12, 2020, 4:15am UTC](https://discuss.elastic.co/t/input-pdf-in-logstash/217722/3 "2020-02-12T04:15:20Z")

</div>

@Vivek_Srivastava - Welcome to our community forums!

In addition to what @kares mentioned, can you also provide the following information:

- your pipeline config file.
- Logstash [debug logs](https://www.elastic.co/guide/en/logstash/current/running-logstash-command-line.html#command-line-flags). For example, you can run the following command:
  - `bin/logstash --debug -f PATH_TO_CONFIG_FILE`

Thank you.

---

<div class="post-metadata">

**Author:** ![Vivek\_Srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vivek_srivastava/32/61988_2.png) [@Vivek\_Srivastava](https://discuss.elastic.co/u/Vivek_Srivastava)\
**Post date:** [February 12, 2020, 12:50pm UTC](https://discuss.elastic.co/t/input-pdf-in-logstash/217722/4 "2020-02-12T12:50:26Z")

</div>

This is my conf file:

input {  
file {  
type =\> "java"  
path =\> "C:/Users/vivekkumar14/Desktop/ELK/elknew/logstashFiles/Myfile5.pdf"  
#start\_position =\> "beginning"  
sincedb\_path =\> "C:/Users/vivekkumar14/Desktop/ELK/elknew/logstashFiles/Database7/sincedb-access"  
stat\_interval =\> 1

```
codec => multiline {
  pattern => "^\s"
  #negate => "true"
  what => "previous"
}

```

}  
}

filter {  
grok {  
match =\> { "message" =\> "%{IP:client}%{SPACE}%{WORD:method}%{SPACE}%{URIPATHPARAM:request} %{NUMBER:bytes} %{NUMBER:duration}" }  
}  
grok {  
match =\> { "message" =\> "%{URIPATHPARAM:request} %{NUMBER:bytes} %{NUMBER:duration}" }  
}  
grok {  
match =\> { "message" =\> "%{WORD:display} %{NUMBER:ratio} %{NUMBER:seconds}" }  
}  
}

output {

# Sending properly parsed log events to elasticsearch

stdout {  
codec =\> rubydebug  
}

elasticsearch {  
hosts =\> ["localhost:9200"]  
manage\_template =\> true  
index =\> "filterexample12"  
}

}

---

<div class="post-metadata">

**Author:** ![Vivek\_Srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vivek_srivastava/32/61988_2.png) [@Vivek\_Srivastava](https://discuss.elastic.co/u/Vivek_Srivastava)\
**Post date:** [February 12, 2020, 12:51pm UTC](https://discuss.elastic.co/t/input-pdf-in-logstash/217722/5 "2020-02-12T12:51:34Z")

</div>

I am asking how to input pdf file in logstash. Is there any option to input pdf file in logstash??.

---

<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:** [February 12, 2020, 12:56pm UTC](https://discuss.elastic.co/t/input-pdf-in-logstash/217722/6 "2020-02-12T12:56:19Z")

</div>

No, I do not think so. I would recommend you look at FS crawler instead.

---

<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:** [March 11, 2020, 12:56pm UTC](https://discuss.elastic.co/t/input-pdf-in-logstash/217722/7 "2020-03-11T12:56:22Z")

</div>

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