Logstash not reading log file but reads text file

The contents of my log file is same but it does not read the file in .log extension but is able to read it in .txt extension. reads .txt file and shows on console as well as kibana

Config for reading .txt file :-

input{
    file{
        path => ["/home/viggy/dummy/eppm.txt" ],
        start_position => "beginning"
    }
}

Config for reading .log file :-

input{
    file{
        type => "log",
        path => ["/home/viggy/dummy/eppm.log" ],
        start_position => "beginning"
    }
}