Having trouble running logstash on local windows 10 instances. I have looked at the other posts but cannot figure it out.
Config File
input{
file {
path => "C:/Users/adamd/Data/Invoice_01062016_14032018.csv"
start_position => "beginning"
sincedb_path => "NUL"
}
}
filter{
csv{
separator => ","
columns["HeaderKeyId","DetailKeyId","InvId","InvDate",
"InvDateNum","InvDateTime","InvLineId","InvXRefId","InvXRefLineId",
"InvMonth","InvYear","InvMonthYear","InvFinPeriod","InvFinYear",
"OrdId","OrdPrefix","OrdLineNo","OrdLineSeqNum","OrdDate","OrdDateTime",
"ContractNum","ContractType","PurOrdId","CustOrdNum","CustRef2","CustRef3",
"CustReqDate","CustReqDateTime","CustId","CustAXId","CustCode","CustName",
"CustGrpCode","CustGrpName","CustStateId","CustStateDescr","CustLocId","CustLocDescr",
"CustGrpClassId","CustGrpClassDescr","CallerId","CallerName","CallerPhone","Caller2Id",
"Caller2Name","Caller2Phone","Caller2Email","Caller2Company","DispatchRef","ConsignRef",
"CustDelName","CustDelInstruct","CustDelInstruct2","CustDelAddr","CustDelCity",
"CustDelAddrState","CustDelPostCode","ReceiveDate","DispatchDate","IsDirectShip",
"IsShipped","QtyOrd","QtyInv","ItemId","ItemDescr","SuplItemId","SuplId","SuplName",
"ManufItemId","ManufId","ManufName","ItemClass","ItemClass1Id","ItemClass1Descr",
"ItemClass2Id","ItemClass2Descr","ItemVendClass1Id","ItemVendClass1Descr",
"ItemVendClass2Id","ItemVendClass2Descr","ItemVendClass3Id","ItemVendClass3Descr",
"ItemVendClass4Id","ItemVendClass4Descr","FinCodeClassId","ItemStatus","WarehouseId",
"WarehouseDescr","WarehouseFinCode","DealNum","POLineComment","InvExtLineCostEx",
"InvExtLineSellEx","InvExtLineTax","InvExtLineSellInc","TaxJurisdiction","TaxPercent",
"InvCre","RepId","RepCode","RepName","RepCostCodeId","RepCostCodeLofBId","RepCostCodeDivId",
"RepCostCodeRegId","RepCostCodeStateId","Rep2Id","Rep2Code","Rep2Name","Rep2CostCodeId",
"Rep2CostCodeLofBId","Rep2CostCodeDivId","Rep2CostCodeRegId","Rep2CostCodeStateId",
"TransCostCodeId","TransCostCodeLofBId","TransCostCodeDivId","TransCostCodeRegId","TransCostCodeStateId","WorkPerformById","WorkPerformByName",
"WorkPerformByGrpId","WorkPerformByGrpDescr","WorkPerformByNodeId","WorkPerformByNodeDescr","PSFlag","NumProcDays","OrderType","InvOrdType",
"SaleOrderType","SaleContractType","SaleContractLine","InvIsExcluded","CustIsExcluded","ContractIsExcluded","ContractClass","InvIsConsolid",
"DataSource","DateTimeCreated","IsAdjustment","ContractWorkPerformed","ItemSerialNumber","AssetTag","DODGUID","MACAddress","CustRef1"]
}
mutate {convert => ["QtyInv", "integer"]}
mutate {convert => ["QtyOrd", "integer"]}
mutate {convert => ["InvExtLineCostEx", "float"]}
mutate {convert => ["InvExtLineSellEx", "float"]}
}
output{
elasticsearch {
hosts => "localhost:9200"
index => "liberate"
document_type => "invoices"
}
stdout{}
}
Command Line
C:\Users\adamd\Documents\Logstash>bin\logstash -f C:/Users/adamd/Data/logstash_liberateinvoices.conf
Sending Logstash logs to C:/Users/adamd/Documents/Logstash/logs which is now configured via log4j2.properties
[2018-10-15T17:04:19,903][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-10-15T17:04:20,436][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.4.2"}
[2018-10-15T17:04:20,531][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2018-10-15T17:04:20,903][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}